Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cairo 0.9.1 support #67

Merged
merged 1 commit into from
Aug 4, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 8 additions & 2 deletions amarna/grammars/cairo.lark
Original file line number Diff line number Diff line change
Expand Up @@ -72,8 +72,13 @@ named_identifier: IDENTIFIER -> named_identifier
!reg: "ap" -> reg_ap
| "fp" -> reg_fp

bool_expr: expr _DBL_EQ expr -> bool_expr_eq
| expr _NEQ expr -> bool_expr_neq
?bool_expr: bool_and

?bool_and: bool_and "and" notes bool_atom -> bool_and_expr
| bool_atom

?bool_atom: expr _DBL_EQ notes expr -> bool_expr_eq
| expr _NEQ notes expr -> bool_expr_neq

!modifier: "local" -> modifier_local

Expand Down Expand Up @@ -159,6 +164,7 @@ code_element: instruction -> code_element_
| identifier ":" -> code_element_label
| _func -> code_element_function
| _struct -> code_element_struct
| "using" identifier_def "=" type -> code_element_typedef
| _with_attr_statement -> code_element_with_attr
| _with_statement -> code_element_with
| HINT -> code_element_hint
Expand Down