| Safe Haskell | None |
|---|---|
| Language | Haskell2010 |
Language.Happy.Sized
Description
Trees of a given size in tokens. Every symbol knows the fewest and the most tokens it can make. A node picks one of the productions that can make its budget, and shares the budget among its children so that each of them can make its share. Both favour symbols that reach more of the grammar.