diff options
author | Eduardo Julian | 2020-12-15 22:05:05 -0400 |
---|---|---|
committer | Eduardo Julian | 2020-12-15 22:05:05 -0400 |
commit | abc5c5293603229b447b8b5dfa7f3275571ad982 (patch) | |
tree | 26a5a40c6583568522ca9d3714219112e602a693 /stdlib/source/lux/data/maybe.lux | |
parent | 71ade9a07f08c0d61ebd70e64c2745f1ba33cb54 (diff) |
Compiling "lux syntax char case!" with TABLESWITCH instead of LOOKUPSWITCH.
Diffstat (limited to '')
-rw-r--r-- | stdlib/source/lux/data/maybe.lux | 15 |
1 files changed, 7 insertions, 8 deletions
diff --git a/stdlib/source/lux/data/maybe.lux b/stdlib/source/lux/data/maybe.lux index 7b6f3ace4..6584eaf6a 100644 --- a/stdlib/source/lux/data/maybe.lux +++ b/stdlib/source/lux/data/maybe.lux @@ -125,14 +125,13 @@ +20)} (case tokens (^ (list else maybe)) - (let [g!temp (: Code [location.dummy (#.Identifier ["" ""])]) - code (` (case (~ maybe) - (#.Some (~ g!temp)) - (~ g!temp) - - #.None - (~ else)))] - (#.Right [state (list code)])) + (let [g!temp (: Code [location.dummy (#.Identifier ["" ""])])] + (#.Right [state (list (` (case (~ maybe) + (#.Some (~ g!temp)) + (~ g!temp) + + #.None + (~ else))))])) _ (#.Left "Wrong syntax for default"))) |