Add code to create ASTs.

This commit is contained in:
2019-06-04 20:45:06 -07:00
parent a6d381b697
commit 7bd6913ac5
10 changed files with 1289 additions and 7 deletions

View File

@@ -112,7 +112,7 @@ rule expr_case
;
rule expr_case_branches
= expr_case_branches? expr_case_branch
= expr_case_branch expr_case_branches?
;
rule expr_case_branch
@@ -126,8 +126,8 @@ rule pattern
;
rule patterns
= pattern
| patterns tkn_comma pattern
= lower_identifier
| lower_identifier tkn_comma patterns
;
rule type