๐ŸŽ๏ธ Early algorithm

= left-right, top-down ๐Ÿงพ Chart parsing algorithm

How?

  1. Generate predictions for input symbol
    • store all possible predictions in columns
  2. Scan predictions
    • for each column: check rule
    • if fulfilled: continue & update state โ†’ [symbol, state + 1]
  3. Complete predictions
    • Move cursor to next symbol & update symbol โ†’ [symbol + 1, state]
  4. Repeat, if has active prediction && has next input symbol