1
0
mirror of https://github.com/DanilaFe/abacus synced 2024-11-13 14:19:53 -08:00

Remove unnecessary pattern.

This commit is contained in:
Danila Fedorin 2017-07-26 13:25:01 -07:00
parent 93e892f92e
commit 7c4ecdc1db

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);