diff options
author | Eduardo Julian | 2017-06-21 19:10:24 -0400 |
---|---|---|
committer | Eduardo Julian | 2017-06-21 19:10:24 -0400 |
commit | d0ec271e90a2be17d2ad5f5e23b0bb3006602bc8 (patch) | |
tree | 7dc817999ab1da7916d663838f574e670c8c1c15 /stdlib/source/lux/data/number/ratio.lux | |
parent | 4a94a3dab463857fb1e881d4ab835ef5351ba9ac (diff) |
- CLI, Syntax and Lexer are now based upon a common Parser type.
Diffstat (limited to '')
-rw-r--r-- | stdlib/source/lux/data/number/ratio.lux | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/stdlib/source/lux/data/number/ratio.lux b/stdlib/source/lux/data/number/ratio.lux index 8497b3c5d..d9b20cb97 100644 --- a/stdlib/source/lux/data/number/ratio.lux +++ b/stdlib/source/lux/data/number/ratio.lux @@ -5,7 +5,8 @@ [order] number codec - monad) + monad + ["p" parser]) (data [number "n/" Number<Nat> Codec<Text,Nat>] [text "Text/" Monoid<Text>] text/format @@ -148,7 +149,7 @@ #;None (#;Left (Text/append "Invalid syntax for ratio: " input))))) -(syntax: #export (ratio numerator [?denominator (s;opt s;any)]) +(syntax: #export (ratio numerator [?denominator (p;opt s;any)]) {#;doc (doc "Rational literals." (ratio numerator denominator) "The denominator can be omitted if it's 1." |