Package com.github.beothorn.agent.parser
Class Lexer
java.lang.Object
com.github.beothorn.agent.parser.Lexer
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
Lexer
public Lexer()
-
-
Method Details
-
tokenize
This Lexer will generate tokens for our string matcher. For example given the expression:(foobar||endsWith(baz) && !qux)we would get the tokens:{LEFT_PAREN, STRING_VALUE("foobar"), OPERATOR_OR("||"), FUNCTION_CALL("endsWith"), LEFT_PAREN("())") STRING_VALUE("baz"), OPERATOR_AND("&&"), OPERATOR_NOT("!"), RIGHT_PAREN(")")}- Parameters:
input- The expression to be tokenized- Throws:
CompilationException- with clear error message
-