m-chrzan.xyz
aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/lexer.js1
-rw-r--r--src/parser.js1
2 files changed, 2 insertions, 0 deletions
diff --git a/src/lexer.js b/src/lexer.js
index b95ebc5..a83ee2b 100644
--- a/src/lexer.js
+++ b/src/lexer.js
@@ -25,6 +25,7 @@ newLexemeType(')', '\\)')
newLexemeType('E', 'E')
newLexemeType('K', 'K')
newLexemeType('k', 'k')
+newLexemeType('A', 'A')
const lex = (expressionString) => {
let lexemes = []
diff --git a/src/parser.js b/src/parser.js
index a4665ac..1b678e4 100644
--- a/src/parser.js
+++ b/src/parser.js
@@ -63,6 +63,7 @@ newSymbol('d', (parser) => {
newDieOperation('E')
newDieOperation('K')
newDieOperation('k')
+newDieOperation('A')
newInfix('bigPlus', 20, { type: 'add' })
newInfix('bigMinus', 20, { type: 'subtract' })