diff options
author | Marcin Chrzanowski <marcin.j.chrzanowski@gmail.com> | 2017-07-12 23:04:16 -0400 |
---|---|---|
committer | Marcin Chrzanowski <marcin.j.chrzanowski@gmail.com> | 2017-07-12 23:04:16 -0400 |
commit | 2571bdc80a25b0137194bab58029765abe8870b2 (patch) | |
tree | 6c8240f767e9828b9feb3000474ee110f4eb674c /src | |
parent | dd0b2d0fff6d9d8a8350091369a7cfdfacb19499 (diff) |
Lex addition
Diffstat (limited to 'src')
-rw-r--r-- | src/lexer.js | 1 |
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) => { |