elm-verify-examples icon indicating copy to clipboard operation
elm-verify-examples copied to clipboard

Proposal: Using elm-tools/parser for parsing

Open ohanhi opened this issue 7 years ago • 2 comments

At the moment elm-verify-examples is using Regex for parsing the doc comment contents. elm-tools/parser seems like a very nice way to parse things in Elm.

Do you think it would be an interesting experiment if I tried rewriting (at least a part of) the parsing using that library instead of regular expressions?

ohanhi avatar Jun 19 '17 08:06 ohanhi

Go for it, but be sure to benchmark. See this PR for more info: https://github.com/stoeffel/elm-verify-examples/pull/9

eeue56 avatar Jun 19 '17 10:06 eeue56

I was thinking about doing that as well. Please go for it!

stoeffel avatar Jun 19 '17 10:06 stoeffel

The plan here is to adopt still4m/elm-syntax, but there is some work needed to expose the kinds of parsers we need.

gampleman avatar Oct 20 '23 12:10 gampleman