m-chrzan.xyz
aboutsummaryrefslogtreecommitdiff
path: root/src/lexer.js
diff options
context:
space:
mode:
Diffstat (limited to 'src/lexer.js')
-rw-r--r--src/lexer.js2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/lexer.js b/src/lexer.js
index fd347c6..f559816 100644
--- a/src/lexer.js
+++ b/src/lexer.js
@@ -22,6 +22,8 @@ newValueLexeme('constant', '\\d+', Number)
newLexemeType('d', 'd')
newLexemeType('+', '\\+')
newLexemeType('-', '-')
+newLexemeType('(', '\\(')
+newLexemeType(')', '\\)')
newSkippableLexeme('whitespace', '\\s+')
const lex = (expressionString) => {