blynn / nex

Lexer for Go
http://cs.stanford.edu/~blynn/nex/
GNU General Public License v3.0
416 stars 47 forks source link

add prefix argument fixes #23 #32

Closed drewwells closed 8 years ago

drewwells commented 8 years ago

This makes it possible to modify the yy prefix on all variables. If you are using this with yacc, it must use the same prefix or compile errors will occur.

Example usage:

-> % nex -p YY desk.nex && go tool yacc -p YY desk.y && go run desk.nn.go y.go

blynn commented 8 years ago

Thanks very much for your contributions!

I'm getting merge conflicts with this one though. Can you take a look?

drewwells commented 8 years ago

It needs to be rebased on #31 I'll do that

On Sat, Oct 17, 2015, 1:08 AM Ben Lynn notifications@github.com wrote:

Thanks very much for your contributions!

I'm getting merge conflicts with this one though. Can you take a look?

— Reply to this email directly or view it on GitHub https://github.com/blynn/nex/pull/32#issuecomment-148888202.

drewwells commented 8 years ago

Sorry about the huge diff. I moved the lexer text into a separate string outside of the func. git didn't like this!