blynn / nex

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

syntax error for go 1.1 #8

Closed xtaci closed 11 years ago

xtaci commented 11 years ago

10 type yySymType struct { 11 yys int n int } <---- won't compile

blynn commented 11 years ago

Sorry, I haven't touched this code in a while. Can you give a little more context? How do I reproduce this bug?

xtaci commented 11 years ago

i'm not so sure, it seems like i defined both yySymType in lex and %union in yacc.

when it comes next time, i'll post .

PS. hope you continue to update this repository, it's very useful to me .

blynn commented 11 years ago

I fixed this example, and added a test to help ensure it stays fixed.

Thanks for the bug report.