llk
LLk refers to a family of context-free grammars that can be parsed by a top-down, predictive parser using up to k tokens of lookahead. The letters LL stand for left-to-right scanning of the input and a leftmost derivation of the sentence, while the subscript k indicates how many input tokens are consulted to decide which production to apply. LLk grammars are the target of predictive parsing strategies, where decisions are made without backtracking.
A typical LLk parser maintains a stack of grammar symbols and reads input from left to right.
LLk grammars are not universal for all context-free languages. Many languages are not LLk for any finite