1
0
mirror of https://github.com/DanilaFe/abacus synced 2024-12-22 15:30:09 -08:00

Remove unnecessary pattern.

This commit is contained in:
Danila Fedorin 2017-07-26 13:25:01 -07:00
parent e816b86a3e
commit ec030607bf

View File

@ -14,7 +14,6 @@ public abstract class TreeNode {
* The lexer used to lex tokens.
*/
private static Lexer<TokenType> lexer = new Lexer<TokenType>(){{
register(".", TokenType.ANY);
register("\\+|-|\\*|/|^", TokenType.OP);
register("[0-9]+(\\.[0-9]+)?", TokenType.NUM);
register("[a-zA-Z]+", TokenType.WORD);