diff options
author | Eduardo Julian | 2021-09-08 18:57:27 -0400 |
---|---|---|
committer | Eduardo Julian | 2021-09-08 18:57:27 -0400 |
commit | 880cb37c261df20b7b8d968a909557bbc63d6b7f (patch) | |
tree | eb94b5572f3b03b855927c67e171b73ceb4db6c4 /stdlib/source/library/lux/control/parser/type.lux | |
parent | 9ae7272d50b64dc9c8651e7a684abc007d4f2caf (diff) |
Normalized syntax of "exception:", "actor:" and "message:".
Diffstat (limited to 'stdlib/source/library/lux/control/parser/type.lux')
-rw-r--r-- | stdlib/source/library/lux/control/parser/type.lux | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/stdlib/source/library/lux/control/parser/type.lux b/stdlib/source/library/lux/control/parser/type.lux index 437574acb..735b594d8 100644 --- a/stdlib/source/library/lux/control/parser/type.lux +++ b/stdlib/source/library/lux/control/parser/type.lux @@ -26,7 +26,7 @@ [(#.Primitive "" #.End)]) (template [<name>] - [(exception: .public (<name> {type Type}) + [(exception: .public (<name> [type Type]) (exception.report ["Type" (%.type type)]))] @@ -43,7 +43,8 @@ ) (template [<name>] - [(exception: .public (<name> {expected Type} {actual Type}) + [(exception: .public (<name> [expected Type + actual Type]) (exception.report ["Expected" (%.type expected)] ["Actual" (%.type actual)]))] @@ -54,7 +55,7 @@ (exception: .public empty_input) -(exception: .public (unconsumed_input {remaining (List Type)}) +(exception: .public (unconsumed_input [remaining (List Type)]) (exception.report ["Types" (|> remaining (list\each (|>> %.type (format text.new_line "* "))) |