diff options
author | Eduardo Julian | 2017-10-31 22:26:59 -0400 |
---|---|---|
committer | Eduardo Julian | 2017-10-31 22:26:59 -0400 |
commit | a269ea72337852e8e57bd427773baed111ad6e92 (patch) | |
tree | f4502ac003905acb378e09d6ea2c83559de96b44 /stdlib | |
parent | 19c589edc2c1dd77550e26d4f5cf78ec772da337 (diff) |
- "^code" can now be used as a normal macro, when pattern-matching using the "^" macro.
Diffstat (limited to 'stdlib')
-rw-r--r-- | stdlib/source/lux.lux | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/stdlib/source/lux.lux b/stdlib/source/lux.lux index 6b68b9f29..51dff8142 100644 --- a/stdlib/source/lux.lux +++ b/stdlib/source/lux.lux @@ -6046,6 +6046,11 @@ (do Monad<Meta> [pattern (untemplate-pattern template)] (wrap (list& pattern body branches))) - + + (^ (list template)) + (do Monad<Meta> + [pattern (untemplate-pattern template)] + (wrap (list pattern))) + _ (fail "Wrong syntax for ^code"))) |