aboutsummaryrefslogtreecommitdiffstats
path: root/core/parsing.moon
diff options
context:
space:
mode:
authors-ol <s-ol@users.noreply.github.com>2020-02-23 22:16:25 +0000
committers-ol <s-ol@users.noreply.github.com>2020-02-28 12:22:25 +0000
commit0b284ac60916142cadb8b65fa5ca9f9cffcfc200 (patch)
tree07fc75330d813d54751f42a2f55b979398929814 /core/parsing.moon
parentmerge Const and Stream into Value; Dataflow logic (diff)
downloadalive-0b284ac60916142cadb8b65fa5ca9f9cffcfc200.tar.gz
alive-0b284ac60916142cadb8b65fa5ca9f9cffcfc200.zip
lots of fixes
Diffstat (limited to 'core/parsing.moon')
-rw-r--r--core/parsing.moon2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/parsing.moon b/core/parsing.moon
index 03ef85c..0123469 100644
--- a/core/parsing.moon
+++ b/core/parsing.moon
@@ -24,7 +24,7 @@ str = strd + strq
int = digit^1
float = (digit^1 * '.' * digit^0) + (digit^0 * '.' * digit^1)
-num = (float + int) / Value\parse 'num'
+num = ((P '-')^-1 * (float + int)) / Value\parse 'num'
atom = num + sym + str