haskell / happy

The Happy parser generator for Haskell
Other
276 stars 85 forks source link

Split `BookendedAbsSyn` out from `AbsSyn` #220

Closed Ericson2314 closed 2 years ago

Ericson2314 commented 2 years ago

BookendedAbsSyn wraps it to separate the information needed by the middle parts of happy from the header and footer which are just added back at the end.

The code looks nicer to me now, with fewer wildcard and @-patterns, therefore I conclude that this is makes the data structures more natural for what we are doing.