🏎️ 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