Skip to content

Commit

Permalink
added parenthesized expressions
Browse files Browse the repository at this point in the history
  • Loading branch information
azizghuloum committed Nov 24, 2024
1 parent 58190c0 commit f89d686
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/AST.ts
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ export type list_tag =
| "empty_statement"
| "array"
| "member_expression"
| "parenthesized_expression"
| "slice"
| "ERROR";

Expand All @@ -55,6 +56,7 @@ export const list_tags: { [k in list_tag]: list_tag } = {
slice: "slice",
array: "array",
member_expression: "member_expression",
parenthesized_expression: "parenthesized_expression",
ERROR: "ERROR",
};

Expand Down
1 change: 1 addition & 0 deletions src/expander.ts
Original file line number Diff line number Diff line change
Expand Up @@ -286,6 +286,7 @@ const list_handlers_table: { [tag in list_tag]: "descend" | "stop" } = {
empty_statement: "descend",
formal_parameters: "stop",
program: "stop",
parenthesized_expression: "descend",
ERROR: "stop",
};

Expand Down

0 comments on commit f89d686

Please sign in to comment.