tcr / corollary

Cross-compiler from Haskell to Rust, plus parser-haskell.
73 stars 5 forks source link

Clean up haskell.lalrpop, normalize statements #24

Closed tcr closed 7 years ago

tcr commented 7 years ago

This undos the weird LetInner hack before, so now we only have Statements, Statements which are actually Exprs, and Exprs.

Much of the code is reorganized. Removed a lot of minor unused code besides that also.

This guts the actual AST; there probably isn't much in it right now and as such the cross-compilations will be very empty. But this can be gradually fixed now, and correctly.