Skip to content

Commit

Permalink
test: update
Browse files Browse the repository at this point in the history
  • Loading branch information
jkbz64 committed Jan 3, 2024
1 parent d187743 commit c96a563
Showing 1 changed file with 72 additions and 62 deletions.
134 changes: 72 additions & 62 deletions test/corpus/basic.txt
Original file line number Diff line number Diff line change
Expand Up @@ -326,15 +326,16 @@ END.
--------------------------------------------------------------------------------

(source_code
(if_do_statement
(if_statement
condition: (comparison_expression
(identifier)
(number_literal))
(body
(variable_assignment
(assignment
(identifier)
(number_literal))))))
(do_block
(body
(variable_assignment
(assignment
(identifier)
(number_literal)))))))

================================================================================
IF ELSE DO statement
Expand All @@ -350,21 +351,23 @@ END.
--------------------------------------------------------------------------------

(source_code
(if_do_statement
(if_statement
condition: (comparison_expression
(identifier)
(number_literal))
(body
(variable_assignment
(assignment
(identifier)
(number_literal))))
(else_do_statement
(do_block
(body
(variable_assignment
(assignment
(identifier)
(identifier)))))))
(number_literal)))))
(else_statement
(do_block
(body
(variable_assignment
(assignment
(identifier)
(identifier))))))))

================================================================================
IF ELSE IF statement
Expand All @@ -383,30 +386,33 @@ END.
--------------------------------------------------------------------------------

(source_code
(if_do_statement
(if_statement
condition: (comparison_expression
(identifier)
(number_literal))
(body
(variable_assignment
(assignment
(identifier)
(number_literal))))
(else_do_if_statement
condition: (comparison_expression
(identifier)
(number_literal))
(do_block
(body
(variable_assignment
(assignment
(identifier)
(identifier)))))
(else_do_statement
(body
(variable_assignment
(assignment
(identifier)
(identifier)))))))
(number_literal)))))
(else_if_statement
condition: (comparison_expression
(identifier)
(number_literal))
(do_block
(body
(variable_assignment
(assignment
(identifier)
(identifier))))))
(else_statement
(do_block
(body
(variable_assignment
(assignment
(identifier)
(identifier))))))))

================================================================================
IF ELSE IF statement with line break before DOs
Expand All @@ -428,30 +434,33 @@ End.
--------------------------------------------------------------------------------

(source_code
(if_do_statement
(if_statement
condition: (comparison_expression
(identifier)
(number_literal))
(body
(variable_assignment
(assignment
(identifier)
(number_literal))))
(else_do_if_statement
condition: (comparison_expression
(identifier)
(number_literal))
(do_block
(body
(variable_assignment
(assignment
(identifier)
(identifier)))))
(else_do_statement
(body
(variable_assignment
(assignment
(identifier)
(identifier)))))))
(number_literal)))))
(else_if_statement
condition: (comparison_expression
(identifier)
(number_literal))
(do_block
(body
(variable_assignment
(assignment
(identifier)
(identifier))))))
(else_statement
(do_block
(body
(variable_assignment
(assignment
(identifier)
(identifier))))))))

================================================================================
IF THEN statement
Expand All @@ -462,7 +471,7 @@ IF x > 10 THEN x = 10.
--------------------------------------------------------------------------------

(source_code
(if_then_statement
(if_statement
condition: (comparison_expression
(identifier)
(number_literal))
Expand All @@ -487,41 +496,42 @@ END.
--------------------------------------------------------------------------------

(source_code
(if_then_statement
(if_statement
condition: (comparison_expression
(identifier)
(number_literal))
(variable_assignment
(assignment
(identifier)
(number_literal)))
(else_then_if_statement
(else_if_statement
condition: (comparison_expression
(identifier)
(number_literal))
(variable_assignment
(assignment
(identifier)
(number_literal))))
(else_then_statement
(else_statement
(variable_assignment
(assignment
(identifier)
(identifier)))))
(if_then_statement
(if_statement
condition: (comparison_expression
(identifier)
(number_literal))
(variable_assignment
(assignment
(identifier)
(number_literal)))
(else_then_statement
(body
(variable_assignment
(assignment
(identifier)
(number_literal)))))))
(else_statement
(do_block
(body
(variable_assignment
(assignment
(identifier)
(number_literal))))))))

================================================================================
LOGICAL expressions
Expand Down Expand Up @@ -557,7 +567,7 @@ y = x < 10 OR x = 10.
(assignment
(identifier)
(boolean_literal)))
(if_then_statement
(if_statement
condition: (logical_expression
(boolean_literal)
(boolean_literal))
Expand Down Expand Up @@ -1253,14 +1263,14 @@ IF CURRENT-CHANGED x THEN RETURN '!'.
(identifier)
(input_expression
field: (identifier))))
(if_then_statement
(if_statement
condition: (locked_expression
(identifier))
(return_statement
(single_quoted_string)))
(find_statement
table: (identifier))
(if_then_statement
(if_statement
condition: (current_changed_expression
(identifier))
(return_statement
Expand Down

0 comments on commit c96a563

Please sign in to comment.