mirror of
https://github.com/roc-lang/roc.git
synced 2025-12-23 08:48:03 +00:00
36 lines
415 B
Markdown
36 lines
415 B
Markdown
# META
|
|
~~~ini
|
|
description=Simple string literal
|
|
type=expr
|
|
~~~
|
|
# SOURCE
|
|
~~~roc
|
|
"hello world"
|
|
~~~
|
|
# EXPECTED
|
|
NIL
|
|
# PROBLEMS
|
|
NIL
|
|
# TOKENS
|
|
~~~zig
|
|
StringStart,StringPart,StringEnd,
|
|
EndOfFile,
|
|
~~~
|
|
# PARSE
|
|
~~~clojure
|
|
(e-string
|
|
(e-string-part (raw "hello world")))
|
|
~~~
|
|
# FORMATTED
|
|
~~~roc
|
|
NO CHANGE
|
|
~~~
|
|
# CANONICALIZE
|
|
~~~clojure
|
|
(e-string
|
|
(e-literal (string "hello world")))
|
|
~~~
|
|
# TYPES
|
|
~~~clojure
|
|
(expr (type "Str"))
|
|
~~~
|