dillonkearns / elm-typescript-interop

Generate TypeScript declaration files for your elm ports!
BSD 3-Clause "New" or "Revised" License
165 stars 13 forks source link

Explore using stil4m/elm-syntax instead of elm-ast #17

Open dillonkearns opened 5 years ago

dillonkearns commented 5 years ago

Using https://github.com/stil4m/elm-syntax may potentially address a few problems:

Here's the original comment suggesting this library: https://github.com/dillonkearns/elm-typescript-interop/issues/15#issuecomment-438448890

Here are some current issues in elm-typescript-interop it could address:

davetapley commented 5 years ago

If #18 is merged, then FYI it will have to be updated if we move away from elm-ast.

muelli commented 5 years ago

I'm throwing in a wild idea: How about some manual pre-processing of the modules? In particular, stripping -- comments to alleviate the problems experienced in #15.

Also note https://github.com/andre-dietrich/parser-combinators

dillonkearns commented 4 years ago

I suggested the manual preprocessing in a github issue a while back for the Bogdanp parsing library, but it seems like that one isn't being actively maintained lately (at least the last I checked).

I think the still4m package is the way to go. It will take some time to change things over, though and I don't have much bandwidth at the moment, but I'll go that route when I do it.