mirror of
https://github.com/wasp-lang/wasp.git
synced 2024-12-27 11:03:14 +03:00
75ce7db663
* Fixed incorrect handling of escaped strings in parser. * Refactored Parser golden tests a bit. * Moved PrettyPrinter for Parser AST to Parser. * fix
35 lines
752 B
Plaintext
35 lines
752 B
Plaintext
(AST
|
|
(Decl@1:1-11:1 type=test name=Decl
|
|
(Dict@1:11-11:1
|
|
(DictEntry key=string
|
|
(String@2:11-25 value="Hello Wasp =}")
|
|
)
|
|
(DictEntry key=escapedString
|
|
(String@3:18-29 value="Look, a \"")
|
|
)
|
|
(DictEntry key=integer
|
|
(Integer@4:12-13 value=42)
|
|
)
|
|
(DictEntry key=real
|
|
(Double@5:9-12 value=3.14)
|
|
)
|
|
(DictEntry key=yes
|
|
(Bool@6:8-11 value=True)
|
|
)
|
|
(DictEntry key=no
|
|
(Bool@7:7-11 value=False)
|
|
)
|
|
(DictEntry key=ident
|
|
(Var@8:10-13 variable=Wasp)
|
|
)
|
|
(DictEntry key=innerDict
|
|
(Dict@10:14-36
|
|
(DictEntry key=innerDictReal
|
|
(Double@10:31-34 value=2.17)
|
|
)
|
|
)
|
|
)
|
|
)
|
|
)
|
|
)
|