errors in generated go files

58 views
Skip to first unread message

K Richard Pixley

unread,
Jul 28, 2020, 2:35:28 PM7/28/20
to golang-nuts

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?

Axel Wagner

unread,
Jul 28, 2020, 2:39:41 PM7/28/20
to K Richard Pixley, golang-nuts

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

K Richard Pixley

unread,
Jul 28, 2020, 4:36:19 PM7/28/20
to Axel Wagner, golang-nuts

Yes!

Thank you.

On 7/28/20 11:38, Axel Wagner wrote:
[External Email. Be cautious of content]
Reply all
Reply to author
Forward
0 new messages