diff options
author | Eduardo Julian | 2017-07-02 15:57:18 -0400 |
---|---|---|
committer | Eduardo Julian | 2017-07-02 15:57:18 -0400 |
commit | d28c16939e02dbd7e3a2d987bc88135285938f2f (patch) | |
tree | 7cbcc0827101f468ed2c905410d8bde02a0dc8dd /new-luxc/source/luxc | |
parent | c0acd75d41ed0e927ec318d4b12c0ec4f5f2e1d3 (diff) |
- Real syntax now supports exponential.
Diffstat (limited to '')
-rw-r--r-- | new-luxc/source/luxc/parser.lux | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/new-luxc/source/luxc/parser.lux b/new-luxc/source/luxc/parser.lux index 7d9c77f2b..9778eb465 100644 --- a/new-luxc/source/luxc/parser.lux +++ b/new-luxc/source/luxc/parser.lux @@ -237,7 +237,12 @@ (p;default "" (l;one-of "-")) rich-digits^ (l;one-of ".") - rich-digits^) + rich-digits^ + (p;default "" + ($_ l;seq + (l;one-of "eE") + (p;default "" (l;one-of "+-")) + (l;many l;decimal)))) number;Codec<Text,Real>] [parse-deg #;Deg |