elm-verify-examples
elm-verify-examples copied to clipboard
Proposal: Using elm-tools/parser for parsing
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?
Go for it, but be sure to benchmark. See this PR for more info: https://github.com/stoeffel/elm-verify-examples/pull/9
I was thinking about doing that as well. Please go for it!
The plan here is to adopt still4m/elm-syntax, but there is some work needed to expose the kinds of parsers we need.