Phew.. It was a lot of work to fix all the bugs, reduce compile times to reasonable amounts, and actually implement the parser, but I finally have a full MinCaml parser implemented using my own LR parser generator: github.com/osa1/mincaml/b
Not the final product!
Conversation
Oooh nice! How does your parser generator compare to LALRPOP? Other than being able to be used via a procedural macro?
1
Replying to
Nice! Very cool! And thanks for the info.
Curious if you've seen this post, and if you have any thoughts: matklad.github.io/2018/06/06/mod
Replying to
Very interesting post! I think I agree that lossless parse trees are a good idea and semantic actions feel like a "layering violation". tree-sitter gets this right. I should probably implement a mode in my parser generator to disallow semantic actions and return lossless trees.
2
1
Show replies

