You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Well there is of course this https://github.com/purescript/purescript-in-purescript which is outdated. I don't think it's a good idea to develop in parallel a parser to the official purescript parser which is in the purescript compiler. Instead i would prefer import / export of the syntax tree.
For codegen the purescript code tree would be constructed directly, so we don't need a parser.
Would be interesting though (for testing as well) to do:
create arbitrary code structures (AST / CST) with Arbitrary instance from haskell quickcheck
export to intermediate format (not clear which format is suitable)
import into this library
pretty print with purescript code
read printed source file with official purescript parser in purescript compiler
compare structures for equility
By the way .. i vaguely remember that there were some parts to split of some parts of the official purescript compiler into their own library ... this might become interesting in the future.
How do you see parsing in relation to this library? Would you say it should live in a different library?
The text was updated successfully, but these errors were encountered: