Maybe this helps?
https://golang.org/src/cmd/compile/doc.go#L153

On Tue, Jul 28, 2020 at 8:35 PM 'K Richard Pixley' via golang-nuts <
golang-nuts@googlegroups.com> wrote:

> I'm currently working with pigeon, a peg based parser generator.
>
> When I...
>
>    - make a go error in the source file, grammar.peg...
>    - that is processed correctly by pigeon into an invalid grammar.go...
>    - and the go compiler correctly complains about the error...
>    - it complains about an error in grammar.go.
>
> I wish it complained about the error in grammar.peg, with line number, and
> possibly column number.
>
> I know how lex/yacc/byacc/bison/et all do this in C, (preprocessor
> statements).
>
> How does one do this in go?
>
> --
> You received this message because you are subscribed to the Google Groups
> "golang-nuts" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to golang-nuts+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/golang-nuts/20f63549-fe3a-4b41-6744-0b7545ee0423%40juniper.net
> <https://groups.google.com/d/msgid/golang-nuts/20f63549-fe3a-4b41-6744-0b7545ee0423%40juniper.net?utm_medium=email&utm_source=footer>
> .
>

-- 
You received this message because you are subscribed to the Google Groups 
"golang-nuts" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to golang-nuts+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/golang-nuts/CAEkBMfHvoOA7%2BDxvrYoLAMnQoaRnxZcZrA5SYCcgWBaRV7hFEQ%40mail.gmail.com.

Reply via email to