We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6e7172e commit 65dfba9Copy full SHA for 65dfba9
src/main/antlr4/PiccodeScript.g4
@@ -28,7 +28,7 @@ symbol_lift
28
symbol_entry
29
: ID (symbol_lift)? ;
30
31
-declaration: ID CC (module | func);
+declaration: ID CC (module | func | import_module);
32
33
module:
34
MODULE LBRACE module_stmts RBRACE;
@@ -102,11 +102,12 @@ closure_decl: BOR arg_list? BOR ARROW expr;
102
unary:
103
EXCLAIM expr
104
| SUB expr
105
+ | RETURN expr
106
| TILDE expr
107
| BAND expr;
108
109
if_expr:
- IF expr LBRACE expr* RBRACE (ELSE LBRACE expr* RBRACE)?;
110
+ IF expr LBRACE expr RBRACE (ELSE LBRACE expr RBRACE)?;
111
112
when_expr:
113
WHEN expr LBRACE when_cases else_case? RBRACE;
0 commit comments