v5 Parsing

New nodes

  • Program has Modules
  • Import list per module
  • ExprMember for a.b
  • Stmt.Export flag

Parsing strategy

  • if first token is module: parse modules
  • else: wrap statements into module main

Postfix loop

  • call ()
  • index []
  • member .

Chaining stays left-to-right.

1 / 1
Use arrow keys or click edges to navigate. Press H to toggle help, F for fullscreen.