LRToy

This LR Toy allows you to enter a grammar (BNF), view some of its properties, and obtain LR(0), SLR and LR(1) parsing tables for it.

The examples below illustrate the supported BNF notation.

gr0


LR(0) SLR LR(1)

gr1


LR(0) SLR LR(1)

gr2


LR(0) SLR LR(1)

gr3


LR(0) SLR LR(1)

gr5


LR(0) SLR LR(1)

gr6


LR(0) SLR LR(1)

your_own_grammar


LR(0) SLR LR(1)

Thomas Hallgren