Inherits Grammar from dict
It would be nice to write:
A,B,C = Rulename("A"), Rulename("B"), Rulename("C")
g = Grammar()
g[A] = B+C
Instead of:
g.add_rule(A, B+C)
It would be nice to write:
A,B,C = Rulename("A"), Rulename("B"), Rulename("C")
g = Grammar()
g[A] = B+C
Instead of:
g.add_rule(A, B+C)