diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/lexer.js | 1 | ||||
-rw-r--r-- | src/parser.js | 1 |
2 files changed, 2 insertions, 0 deletions
diff --git a/src/lexer.js b/src/lexer.js index a83ee2b..f316147 100644 --- a/src/lexer.js +++ b/src/lexer.js @@ -26,6 +26,7 @@ newLexemeType('E', 'E') newLexemeType('K', 'K') newLexemeType('k', 'k') newLexemeType('A', 'A') +newLexemeType('T', 'T') const lex = (expressionString) => { let lexemes = [] diff --git a/src/parser.js b/src/parser.js index 1b678e4..0201d05 100644 --- a/src/parser.js +++ b/src/parser.js @@ -64,6 +64,7 @@ newDieOperation('E') newDieOperation('K') newDieOperation('k') newDieOperation('A') +newDieOperation('T') newInfix('bigPlus', 20, { type: 'add' }) newInfix('bigMinus', 20, { type: 'subtract' }) |