mirror of
https://github.com/DanilaFe/abacus
synced 2024-12-22 23:40:08 -08:00
Remove unnecessary pattern.
This commit is contained in:
parent
e816b86a3e
commit
ec030607bf
|
@ -14,7 +14,6 @@ public abstract class TreeNode {
|
||||||
* The lexer used to lex tokens.
|
* The lexer used to lex tokens.
|
||||||
*/
|
*/
|
||||||
private static Lexer<TokenType> lexer = new Lexer<TokenType>(){{
|
private static Lexer<TokenType> lexer = new Lexer<TokenType>(){{
|
||||||
register(".", TokenType.ANY);
|
|
||||||
register("\\+|-|\\*|/|^", TokenType.OP);
|
register("\\+|-|\\*|/|^", TokenType.OP);
|
||||||
register("[0-9]+(\\.[0-9]+)?", TokenType.NUM);
|
register("[0-9]+(\\.[0-9]+)?", TokenType.NUM);
|
||||||
register("[a-zA-Z]+", TokenType.WORD);
|
register("[a-zA-Z]+", TokenType.WORD);
|
||||||
|
|
Loading…
Reference in New Issue
Block a user