LL1 parser

Basic idea

Top-down, predictive parser using a single token of lookahead. Either hand-coded as recursive-descent functions, or table-driven from a FIRST/FOLLOW analysis. Fast and gives great error messages — at the price of grammar restrictions (no left recursion, no common prefixes).

Key formulas

Two types: hand coded recursive descent which is essentially LL(*) or table driven.

Siblings