Skip to content

Commit

Permalink
fix a typo in mcomp-lang grammar
Browse files Browse the repository at this point in the history
  • Loading branch information
lillo committed Jan 3, 2022
1 parent 48f15a7 commit b3afbb7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mcomp-lang/mcomp-parsing/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ As usual in EBNF notation, the operator `*` means zero or more occurrences, `+`

BasicType ::= "int" | "char" | "void" | "bool"

Stmt ::= "return" Expr? ";" | Expr ";" | Block | "while" "(" Expr ")" Stmt
Stmt ::= "return" Expr? ";" | Expr? ";" | Block | "while" "(" Expr ")" Stmt
| "if" "(" Expr ")" Stmt "else" Stmt | "if" "(" Expr ")" Stmt
| "for" "(" Expr? ";" Expr? ";" Expr? ")" Stmt

Expand Down

0 comments on commit b3afbb7

Please sign in to comment.