m-chrzan.xyz
aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMarcin Chrzanowski <marcin.j.chrzanowski@gmail.com>2017-07-13 21:03:49 -0400
committerMarcin Chrzanowski <marcin.j.chrzanowski@gmail.com>2017-07-13 21:03:49 -0400
commitac62f2f52e0a656d60d2700937fdadabb221fcb3 (patch)
tree2e49f55e19d665b9169402532dbe956f085d55c3 /src
parent2571bdc80a25b0137194bab58029765abe8870b2 (diff)
Rename lexeme
Diffstat (limited to 'src')
-rw-r--r--src/lexer.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lexer.js b/src/lexer.js
index eedabd7..97130d8 100644
--- a/src/lexer.js
+++ b/src/lexer.js
@@ -18,7 +18,7 @@ const newSkippableLexeme = (type, regex) => {
newLexemeType(type, regex, () => {})
}
-newValueLexeme('number', '\\d+', Number)
+newValueLexeme('constant', '\\d+', Number)
newLexemeType('d', 'd')
newLexemeType('+', '\\+')
newSkippableLexeme('whitespace', '\\s+')