Closed joelreymont closed 10 years ago
Ben, They are made available to rules, e.g. for error reporting.
See for example https://github.com/dotcloud/docker/pull/2266
So what do you think?
Apologies for the delay. I can see that it's useful to store data in the Lexer struct, but it should be configurable, like the yyextra field of Flex. Unfortunately, I don't have time to do all this right now, so I merged your changes and left a comment instead.
If someone ever does get around to adding a yyextra-like feature to nex, it means you'll have to change the docker code.
That's fine, thank you Ben!
On Tue, Nov 19, 2013 at 5:46 PM, Ben Lynn notifications@github.com wrote:
Apologies for the delay. I can see that it's useful to store data in the Lexer struct, but it should be configurable, like the yyextra field of Flex. Unfortunately, I don't have time to do all this right now, so I merged your changes and left a comment instead.
If someone ever does get around to adding a yyextra-like feature to nex, it means you'll have to change the docker code.
— Reply to this email directly or view it on GitHubhttps://github.com/blynn/nex/pull/13#issuecomment-28814321 .
for hire: mac osx device driver ninja. kernel, usb and coreaudio drivers ---------------------+------------+--------------------------------------- http://wagerlabs.com | @wagerlabs | http://www.linkedin.com/in/joelreymont ---------------------+------------+---------------------------------------
I'm not sure about this change. It looks like 'l' and 'c' are just declared but not used anywhere.