org.unlaxer.tinyexpression.parser.javalang.JavaBlockComment Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of tinyExpression Show documentation
Show all versions of tinyExpression Show documentation
TinyExpression implemented with Unlaxer
package org.unlaxer.tinyexpression.parser.javalang;
import org.unlaxer.Name;
import org.unlaxer.parser.ChainParsers;
import org.unlaxer.parser.combinator.LazyChain;
import org.unlaxer.parser.elementary.WildCardStringTerninatorParser;
import org.unlaxer.parser.elementary.WordParser;
public class JavaBlockComment extends LazyChain{
// parser for /* */ comment
private static final long serialVersionUID = 2143565367402566927L;
public JavaBlockComment() {
super();
}
public JavaBlockComment(Name name) {
super(name);
}
@Override
public org.unlaxer.parser.Parsers getLazyParsers() {
return new ChainParsers(
new WordParser("/*"),
new WildCardStringTerninatorParser("*/"),
new WordParser("*/")
);
}
}