mirror of
https://github.com/roc-lang/roc.git
synced 2025-12-23 08:48:03 +00:00
642 B
642 B
META
description=Expression with a crash statement
type=expr
SOURCE
{
crash "This is a crash statement"
{}
}
EXPECTED
NIL
PROBLEMS
NIL
TOKENS
OpenCurly,
KwCrash,StringStart,StringPart,StringEnd,
OpenCurly,CloseCurly,
CloseCurly,
EndOfFile,
PARSE
(e-block
(statements
(s-crash
(e-string
(e-string-part (raw "This is a crash statement"))))
(e-record)))
FORMATTED
{
crash "This is a crash statement"
{}
}
CANONICALIZE
(e-block
(s-crash (msg "This is a crash statement"))
(e-empty_record))
TYPES
(expr (type "_a"))