I have a small question: is it possible to send data (such as a parameter to parse()) to the parser so that it can be accessed in the “Yacc” file? After reading the documentation and the book, I don't see any way of doing this “cleanly”. You could use a static variable, but that wouldn't be thread-safe.
If this really isn't possible right now, it might be a good idea to add it, as it would open up a whole new range of possibilities.
Hello,
I have a small question: is it possible to send data (such as a parameter to
parse()
) to the parser so that it can be accessed in the “Yacc” file? After reading the documentation and the book, I don't see any way of doing this “cleanly”. You could use a static variable, but that wouldn't be thread-safe.If this really isn't possible right now, it might be a good idea to add it, as it would open up a whole new range of possibilities.