I am using Flex & bison on Linux. I have have the following set up:
You shouldn't do this, for the same reason you can't have a variable in C++ named for, while, or class. But if you really want to, look into Start Conditions (it'll be messy).
for
while
class