Skip to content

Instantly share code, notes, and snippets.

@prdoyle
Last active August 29, 2015 14:04
Show Gist options
  • Save prdoyle/25a85a364e79c0c9dc76 to your computer and use it in GitHub Desktop.
Save prdoyle/25a85a364e79c0c9dc76 to your computer and use it in GitHub Desktop.
A small grammar that is neither SLR nor NQLALR but is LALR
Bermudez and Logothetis show a small grammar that is neither SLR nor NQLALR but is LALR.
S -> agd
S -> aAc
S -> bAd
S -> bgc
A -> B
B -> g
"Simple Computation of LALR(1) Lookahead Sets", p.237 Fig. 5
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment