org.unlaxer.tinyexpression.parser.AsParser 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;
import java.util.List;
import org.unlaxer.RangedString;
import org.unlaxer.Token;
import org.unlaxer.TokenKind;
import org.unlaxer.parser.Parser;
import org.unlaxer.parser.elementary.WordParser;
public class AsParser extends WordParser{
private static final long serialVersionUID = -583418216997099103L;
List parsers;
public AsParser() {
super("as");
}
public static Token createToken(int position,TokenKind tokenKind) {
return new Token(tokenKind, new RangedString(position, " as "), Parser.get(AsParser.class));
}
}