m-chrzan.xyz
aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/lexer.js1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/lexer.js b/src/lexer.js
index 7d876fb..eedabd7 100644
--- a/src/lexer.js
+++ b/src/lexer.js
@@ -20,6 +20,7 @@ const newSkippableLexeme = (type, regex) => {
newValueLexeme('number', '\\d+', Number)
newLexemeType('d', 'd')
+newLexemeType('+', '\\+')
newSkippableLexeme('whitespace', '\\s+')
const lex = (expressionString) => {