hylo icon indicating copy to clipboard operation
hylo copied to clipboard

Consider Citron for parsing

Open dabrahams opened this issue 3 years ago • 1 comments

I found this to be a pleasure to use and it reduced the amount of code in my project considerably over the corresponding hand-coded parser.

dabrahams avatar Dec 31 '21 19:12 dabrahams

The current implementation uses a custom data structure as it parses declarations to configure scopes (i.e., assign Decl.parentDeclSpace). Would it be possible to reproduce that behavior with Citron?

I'm also a little concerned about error messages. The current implementation purposely parses a superset of Val's actual grammar so that the parser can identify common errors (e.g., missing annotation in a parameter declaration, method qualifier on free function, etc.). How would you handle this kind of errors with Citron?

kyouko-taiga avatar Jan 20 '22 11:01 kyouko-taiga