-
Notifications
You must be signed in to change notification settings - Fork 0
Things I learned making Instant compiler
Dominik Gryboś edited this page Dec 9, 2020
·
2 revisions
Instant compiler was translating statements like: "x=1; y=1; x + y". It was teaser for Latte compiler
- Working with BNFC is hard because it generates a lot of boilerplate that cannot be changed. I could replace it with Parsec.
- I had some problems with
case .. of ..
. At the end case tree were quite big. Solution: Monad transformers - Creating proper strings was awful. Printf like function could be handy
- Automated tests are important
- Some form of CI/CD could be nice