Open Kleidukos opened 5 months ago
It looks like currently the parser is implemented purely in terms of tree-sitter
, which is interesting. Is there some problem with this approach, hence this issue?
@jameshaydon Nope, the parser is actually a combination of tree-sitter, for the production of a CST, an elaboration phase that has yet to exist, and then there is a home-made abomination: https://github.com/Kleidukos/boreal/blob/main/compiler/Boreal/IR/RawCore.hs.
I want to use parser-combinators on the product of tree-sitter instead of manual pattern-matching.
Thanks for the clarification. So I suppose that means you are happy with tree-sitter
for the Text -> CST
parsing?
oh yeah this rules
The parser should use https://flora.pm/packages/@hackage/parser-combinators