elm-ast icon indicating copy to clipboard operation
elm-ast copied to clipboard

Fast and correct type parsing written by Elm core team

Open joonazan opened this issue 8 years ago • 5 comments

I found that the package.elm-lang.org frontend perfectly solves the problem for which I have used this library. The type parsing code there might be helpful in this project.

https://github.com/elm-lang/package.elm-lang.org/blob/master/src/frontend/Parse/Type.elm

joonazan avatar Aug 22 '17 11:08 joonazan

Looks good. Might help in some areas

wende avatar Aug 22 '17 20:08 wende

There is unreleased official Elm parser. It is very simple and has different approach than regexow based parsers but may be worth experimenting with. It's utility library for parses and may be useful in some areas as well

baransu avatar Aug 23 '17 06:08 baransu

@joonazan that code was recently removed, so the link is broken now. Thanks for sharing though. Here's the relevant commit:

https://github.com/elm-lang/package.elm-lang.org/commit/e2bb304e78377514335059850922743c82d33970

brian-carroll avatar Feb 25 '18 09:02 brian-carroll

@brian-carroll Do you know why package.elm-lang.org does not need it anymore?

Also, if anyone is interested, I can open-source a version of the type parser with the JS translated into pure Elm. I'm using it in a closed-source project of mine.

joonazan avatar Feb 25 '18 12:02 joonazan

@joonazan no, sorry, I don't know any more. The commit message says. "Superseded by elm-tools/parser and elm-tools/documentation" but I didn't dig any deeper.

brian-carroll avatar Feb 25 '18 23:02 brian-carroll