>
> how do I know what row/col the mistake came from in the input String?


Have you looked at Parser.LowLevel
<http://package.elm-lang.org/packages/elm-tools/parser/latest/Parser-LowLevel>
module?
I haven't tried it yet but it should help tracking the error position.


2017-08-03 2:59 GMT+09:00 Dave Doty <pexa...@gmail.com>:

> Thanks! I assumed andThen would be involved somehow but didn't quite see
> how to use it.
>
> That said, I don't think validation is necessary during the parsing
>> process. You can check it after everything is parsed. That is much simpler.
>
>
> If I check everything after it is parsed, how do I know what row/col the
> mistake came from in the input String? If the parsing succeeds, then the
> result is simply type OK DFA, but if I find a mistake then I want to be
> able to report which specific part of the input String caused that problem.
>
> --
> You received this message because you are subscribed to a topic in the
> Google Groups "Elm Discuss" group.
> To unsubscribe from this topic, visit https://groups.google.com/d/
> topic/elm-discuss/gxy9D6bncIQ/unsubscribe.
> To unsubscribe from this group and all its topics, send an email to
> elm-discuss+unsubscr...@googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.
>

-- 
You received this message because you are subscribed to the Google Groups "Elm 
Discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to elm-discuss+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to