mirror of
https://github.com/roc-lang/roc.git
synced 2025-12-23 08:48:03 +00:00
1.1 KiB
1.1 KiB
META
description=App Header - nonempty multiline - heavily commented
type=header
SOURCE
app # Comment after keyword
[ # Comment after provides open
main!, # Comment after exposed item
]
{ # Comment after packages open
pf: platform "../main.roc", # Comment after platform
other: "../../other/main.roc", # Comment after last package
}
EXPECTED
NIL
PROBLEMS
NIL
TOKENS
KwApp,
OpenSquare,
LowerIdent,Comma,
CloseSquare,
OpenCurly,
LowerIdent,OpColon,KwPlatform,StringStart,StringPart,StringEnd,Comma,
LowerIdent,OpColon,StringStart,StringPart,StringEnd,Comma,
CloseCurly,
EndOfFile,
PARSE
(app
(provides
(exposed-lower-ident
(text "main!")))
(record-field (name "pf")
(e-string
(e-string-part (raw "../main.roc"))))
(packages
(record-field (name "pf")
(e-string
(e-string-part (raw "../main.roc"))))
(record-field (name "other")
(e-string
(e-string-part (raw "../../other/main.roc"))))))
FORMATTED
NO CHANGE
CANONICALIZE
(can-ir (empty true))
TYPES
(inferred-types
(defs)
(expressions))