![JAR search and dependency download from the Maven repository](/logo.png)
org.unlaxer.tinyexpression.parser.StringLiteralParser Maven / Gradle / Ivy
package org.unlaxer.tinyexpression.parser;
import org.unlaxer.parser.Parsers;
import org.unlaxer.parser.combinator.LazyChoice;
import org.unlaxer.parser.elementary.DoubleQuotedParser;
import org.unlaxer.parser.elementary.SingleQuotedParser;
public class StringLiteralParser extends LazyChoice implements StringExpression{
private static final long serialVersionUID = 3503116045698010940L;
public StringLiteralParser() {
super();
}
@Override
public org.unlaxer.parser.Parsers getLazyParsers() {
return
// StringLiteral:="CharactersWithoutDoubleQuote*"|'CharactersWithoutSingleQuote*';
new Parsers(
new DoubleQuotedParser(),
new SingleQuotedParser()
);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy