On Sun, Jan 9, 2022 at 4:56 PM Ian Lance Taylor <i...@golang.org> wrote:
>
> On Sun, Jan 9, 2022, 1:26 PM Tong Sun <suntong...@gmail.com> 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.com/suntong/lang/blob/master/lang/Go/src/parsers/gocc/ex3-hello/hello.bnf)
>>
>> How to provide the corresponding ast.go?
>>
>> My first try was:
>>
>> https://github.com/suntong/lang/blob/master/lang/Go/src/parsers/gocc/ex3-hello/ast/ast.go
>>
>> and I've made several other attempts, but still unable to make it work.
>
>
> These kinds of questions might be better directed to the people who maintain 
> gocc.  I don't know whether they read this mailing list, which is about the 
> Go language in general.

OK, I'll keep that in mind next time. BTW, I've fixed it --

https://github.com/suntong/lang/tree/master/lang/Go/src/parsers/gocc/ex3-hello

-- 
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/CAMmz1OcD8zLWaAW1ozfx2rf5NLoAZHHJSA4ehY6BJ7P6HBhoHA%40mail.gmail.com.

Reply via email to