Bruno BELANYI
02f83784b1
Makes the dumped AST more readable, and will probably help in writing future queries.
122 lines
3.3 KiB
Plaintext
122 lines
3.3 KiB
Plaintext
================================================================================
|
|
nil literal
|
|
================================================================================
|
|
|
|
nil
|
|
|
|
--------------------------------------------------------------------------------
|
|
|
|
(source_file
|
|
(nil_literal))
|
|
|
|
================================================================================
|
|
Integer literal
|
|
================================================================================
|
|
|
|
42
|
|
|
|
--------------------------------------------------------------------------------
|
|
|
|
(source_file
|
|
(integer_literal))
|
|
|
|
================================================================================
|
|
String literal
|
|
================================================================================
|
|
|
|
"Hello World!"
|
|
|
|
--------------------------------------------------------------------------------
|
|
|
|
(source_file
|
|
(string_literal))
|
|
|
|
================================================================================
|
|
String literal special character escapes
|
|
================================================================================
|
|
|
|
"Hello\nWorld!"
|
|
|
|
--------------------------------------------------------------------------------
|
|
|
|
(source_file
|
|
(string_literal
|
|
(escape_sequence)))
|
|
|
|
================================================================================
|
|
String literal octal
|
|
================================================================================
|
|
|
|
"Hello World\041"
|
|
|
|
--------------------------------------------------------------------------------
|
|
|
|
(source_file
|
|
(string_literal
|
|
(escape_sequence)))
|
|
|
|
================================================================================
|
|
String literal hex
|
|
================================================================================
|
|
|
|
"Hello World\x21"
|
|
|
|
--------------------------------------------------------------------------------
|
|
|
|
(source_file
|
|
(string_literal
|
|
(escape_sequence)))
|
|
|
|
================================================================================
|
|
String literal character escapes
|
|
================================================================================
|
|
|
|
"Hello\\\"World\""
|
|
|
|
--------------------------------------------------------------------------------
|
|
|
|
(source_file
|
|
(string_literal
|
|
(escape_sequence)
|
|
(escape_sequence)
|
|
(escape_sequence)))
|
|
|
|
================================================================================
|
|
Unterminated string literal
|
|
================================================================================
|
|
|
|
"
|
|
|
|
--------------------------------------------------------------------------------
|
|
|
|
(source_file
|
|
(string_literal
|
|
(MISSING """)))
|
|
|
|
================================================================================
|
|
String literal unterminated escape
|
|
================================================================================
|
|
|
|
"\"
|
|
|
|
--------------------------------------------------------------------------------
|
|
|
|
(source_file
|
|
(string_literal
|
|
(escape_sequence)
|
|
(MISSING """)))
|
|
|
|
================================================================================
|
|
String literal invalid octal
|
|
================================================================================
|
|
|
|
"\399"
|
|
|
|
--------------------------------------------------------------------------------
|
|
|
|
(source_file
|
|
(ERROR
|
|
(UNEXPECTED '9'))
|
|
(integer_literal)
|
|
(ERROR))
|