aboutsummaryrefslogtreecommitdiff
path: root/stdlib/source/library/lux/control/parser/type.lux
diff options
context:
space:
mode:
authorEduardo Julian2021-09-08 18:57:27 -0400
committerEduardo Julian2021-09-08 18:57:27 -0400
commit880cb37c261df20b7b8d968a909557bbc63d6b7f (patch)
treeeb94b5572f3b03b855927c67e171b73ceb4db6c4 /stdlib/source/library/lux/control/parser/type.lux
parent9ae7272d50b64dc9c8651e7a684abc007d4f2caf (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.lux7
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 "* ")))