I'm interested in using goyacc, so I decided to get some background
and read Johnson's Yacc paper [1]. Translating the calculator example
at the end into Go turned out to be surprisingly easy (with the help
of goyacc's units.y example), so I figured I would post it for other
to take a look at:
https://github.com/bpowers/gocalc
cheers,
Bobby
Hi folks,I'm interested in using goyacc, so I decided to get some background
and read Johnson's Yacc paper [1]. Translating the calculator example
at the end into Go turned out to be surprisingly easy (with the help
of goyacc's units.y example), so I figured I would post it for other
to take a look at:
https://github.com/bpowers/gocalc
oh, thats great! Its nice that its slightly different: floating point
math instead of integer & no variables, as well as more concise.