Open nickydonna opened 9 years ago
I seem to be having a similar issue that when returning types from actions, EOF always panics. @blynn Can you add more examples of returning types from actions? For instance, this example
%%
"+" { return ADD; }
%%
I wrote nex way back in the Go 1.0 days, and looks like a lot has changed since then. I rarely use Go or yacc-like tools these days, so I'm afraid I don't know when I'll get around to fixing this.
@drewwells I've got a bunch of examples in https://github.com/purpleidea/mgmt/tree/master/lang
If that's not enough LMK. I have a plan to write a blog post about this all too.
I was having trouble using nex with go yacc so I copied the example to test it out. I compiled, but it didn't work, as soon as I enter some text it breaks
Using: Mac OS 10.10.1 Go version go1.3.3 darwin/amd64