Skip to content

Commit

Permalink
[sysy] fix sysy spec bug
Browse files Browse the repository at this point in the history
  • Loading branch information
chiakicage committed Mar 26, 2024
1 parent 64c76b6 commit 2f1e3d8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/appendix/sysy-spec.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ Decl ::= VarDecl;
VarDecl ::= BType VarDef {"," VarDef} ";";
VarDef ::= IDENT "=" InitVal
| IDENT "[" INT_CONST "]" {"[" INT_CONST "]"};
| IDENT {"[" INT_CONST "]"};
InitVal ::= Exp;
FuncDef ::= FuncType IDENT "(" [FuncFParams] ")" Block;
Expand Down

0 comments on commit 2f1e3d8

Please sign in to comment.