m-chrzan.xyz
aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMarcin Chrzanowski <marcin.j.chrzanowski@gmail.com>2017-07-12 23:04:16 -0400
committerMarcin Chrzanowski <marcin.j.chrzanowski@gmail.com>2017-07-12 23:04:16 -0400
commit2571bdc80a25b0137194bab58029765abe8870b2 (patch)
tree6c8240f767e9828b9feb3000474ee110f4eb674c /src
parentdd0b2d0fff6d9d8a8350091369a7cfdfacb19499 (diff)
Lex addition
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) => {