| 1 |
"" |
| 2 |
"\"\\" |
| 3 |
"foo |
| 4 |
bar" |
| 5 |
|
| 6 |
"""""" |
| 7 |
""" |
| 8 |
foo |
| 9 |
bar |
| 10 |
""" |
| 11 |
""" |
| 12 |
{ |
| 13 |
"hello": "wren", |
| 14 |
"from" : "json" |
| 15 |
} |
| 16 |
""" |
| 17 |
|
| 18 |
"foo %(bar)" |
| 19 |
"foo * %(1 + 2) ~= bar" |
| 20 |
|
| 21 |
---------------------------------------------------- |
| 22 |
|
| 23 |
[ |
| 24 |
["string-literal", [ |
| 25 |
["string", "\"\""] |
| 26 |
]], |
| 27 |
["string-literal", [ |
| 28 |
["string", "\"\\\"\\\\\""] |
| 29 |
]], |
| 30 |
["string-literal", [ |
| 31 |
["string", "\"foo\r\nbar\""] |
| 32 |
]], |
| 33 |
|
| 34 |
["triple-quoted-string", "\"\"\"\"\"\""], |
| 35 |
["triple-quoted-string", "\"\"\"\r\nfoo\r\nbar\r\n\"\"\""], |
| 36 |
["triple-quoted-string", "\"\"\"\r\n {\r\n \"hello\": \"wren\",\r\n \"from\" : \"json\"\r\n }\r\n\"\"\""], |
| 37 |
|
| 38 |
["string-literal", [ |
| 39 |
["string", "\"foo "], |
| 40 |
["interpolation", [ |
| 41 |
["interpolation-punctuation", "%("], |
| 42 |
["expression", ["bar"]], |
| 43 |
["interpolation-punctuation", ")"] |
| 44 |
]], |
| 45 |
["string", "\""] |
| 46 |
]], |
| 47 |
["string-literal", [ |
| 48 |
["string", "\"foo * "], |
| 49 |
["interpolation", [ |
| 50 |
["interpolation-punctuation", "%("], |
| 51 |
["expression", [ |
| 52 |
["number", "1"], |
| 53 |
["operator", "+"], |
| 54 |
["number", "2"] |
| 55 |
]], |
| 56 |
["interpolation-punctuation", ")"] |
| 57 |
]], |
| 58 |
["string", " ~= bar\""] |
| 59 |
]] |
| 60 |
] |