91 lines
2.6 KiB
Plaintext
91 lines
2.6 KiB
Plaintext
================================================================================
|
|
Empty File
|
|
================================================================================
|
|
|
|
--------------------------------------------------------------------------------
|
|
|
|
(source_file)
|
|
|
|
================================================================================
|
|
statement - single identifier
|
|
================================================================================
|
|
hello
|
|
--------------------------------------------------------------------------------
|
|
|
|
(source_file
|
|
(script_part
|
|
(statement
|
|
(expression
|
|
(path_expression
|
|
(identifier))))))
|
|
|
|
================================================================================
|
|
statement - Simple method definition
|
|
================================================================================
|
|
def hello
|
|
--------------------------------------------------------------------------------
|
|
|
|
(source_file
|
|
(script_part
|
|
(method_declaration
|
|
(identifier))))
|
|
|
|
================================================================================
|
|
statement - Multiple statements same line
|
|
================================================================================
|
|
hello;goodbye;def flunk
|
|
--------------------------------------------------------------------------------
|
|
|
|
(source_file
|
|
(script_part
|
|
(statement
|
|
(expression
|
|
(path_expression
|
|
(identifier)))))
|
|
(script_part
|
|
(statement
|
|
(expression
|
|
(path_expression
|
|
(identifier)))))
|
|
(script_part
|
|
(method_declaration
|
|
(identifier))))
|
|
|
|
================================================================================
|
|
statement - Multiple Statements, Multiple Lines
|
|
================================================================================
|
|
hello
|
|
def flunk
|
|
goodbye;
|
|
--------------------------------------------------------------------------------
|
|
|
|
(source_file
|
|
(script_part
|
|
(statement
|
|
(expression
|
|
(path_expression
|
|
(identifier)))))
|
|
(script_part
|
|
(method_declaration
|
|
(identifier)))
|
|
(script_part
|
|
(statement
|
|
(expression
|
|
(path_expression
|
|
(identifier))))))
|
|
|
|
================================================================================
|
|
statement - path expression multiple parts
|
|
================================================================================
|
|
wibble.wobble.q
|
|
--------------------------------------------------------------------------------
|
|
|
|
(source_file
|
|
(script_part
|
|
(statement
|
|
(expression
|
|
(path_expression
|
|
(identifier)
|
|
(identifier)
|
|
(identifier))))))
|