m-chrzan.xyz
aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
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+')