Re: [go-nuts] errors in generated go files

2020-07-28 Thread 'K Richard Pixley' via golang-nuts

Yes!

Thank you.

On 7/28/20 11:38, Axel Wagner wrote:

[External Email. Be cautious of content]

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 
mailto: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

.



--
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/02cb03a0-4dba-3edf-4ad9-7fb6fdfa557c%40juniper.net.


Re: [go-nuts] errors in generated go files

2020-07-28 Thread 'Axel Wagner' via golang-nuts
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
> 
> .
>

-- 
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.