Package com.ezylang.evalex.parser
Class Tokenizer
- java.lang.Object
-
- com.ezylang.evalex.parser.Tokenizer
-
public class Tokenizer extends java.lang.ObjectThe tokenizer is responsible to parse a string and return a list of tokens. The order of tokens will follow the infix expression notation, skipping any blank characters.
-
-
Constructor Summary
Constructors Constructor Description Tokenizer(java.lang.String expressionString, ExpressionConfiguration configuration)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.List<Token>parse()Parse the given expression and return a list of tokens, representing the expression.
-
-
-
Constructor Detail
-
Tokenizer
public Tokenizer(java.lang.String expressionString, ExpressionConfiguration configuration)
-
-
Method Detail
-
parse
public java.util.List<Token> parse() throws ParseException
Parse the given expression and return a list of tokens, representing the expression.- Returns:
- A list of expression tokens.
- Throws:
ParseException- When the expression can't be parsed.
-
-