v4 Parsing

  • add for statement
  • add break / continue
  • add || and &&
1 / 3

for parsing

for (init; cond; post) { ... }
  • parse init without trailing ;
  • parse optional cond
  • parse optional post
2 / 3

precedence

expr -> or
or   -> and ("||" and)*
and  -> equality ("&&" equality)*
3 / 3
Use arrow keys or click edges to navigate. Press H to toggle help, F for fullscreen.