All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.unlaxer.tinyexpression.parser.StringLiteralParser Maven / Gradle / Ivy

There is a newer version: 1.4.4
Show newest version
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 - 2024 Weber Informatics LLC | Privacy Policy