Skip to content

Commit

Permalink
Update main.go
Browse files Browse the repository at this point in the history
@ was missing for successful bool capture. without @ looks like Empty is always false.
  • Loading branch information
klvnptr authored and alecthomas committed Apr 2, 2021
1 parent 4c2ae52 commit 85bc851
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion _examples/microc/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ type Stmt struct {
WhileStmt *WhileStmt `| @@`
Block *Stmts `| "{" @@ "}"`
Expr *Expr `| @@`
Empty bool `| ";"`
Empty bool `| @";"`
}

type FunBody struct {
Expand Down

0 comments on commit 85bc851

Please sign in to comment.