Re: [go-nuts] Re: Getting started with gocc

2022-01-09 Thread Tong Sun
On Sun, Jan 9, 2022 at 4:56 PM Ian Lance Taylor wrote: > > On Sun, Jan 9, 2022, 1:26 PM Tong Sun wrote: >> >> Hi, >> >> I'm following with >> https://github.com/goccmack/gocc/blob/master/doc/gocc_user_guide.pdf >> >> and I'm at the step of trying to provide my own ast: >> >> For a single bnf of:

Re: [go-nuts] Re: Getting started with gocc

2022-01-09 Thread Ian Lance Taylor
On Sun, Jan 9, 2022, 1:26 PM Tong Sun wrote: > Hi, > > I'm following with > https://github.com/goccmack/gocc/blob/master/doc/gocc_user_guide.pdf > > and I'm at the step of trying to provide my own ast: > > For a single bnf of: > > Hello: "hello" id << ast.NewHello($1) >> ; > > ( > https://github