I'm new to Flex/Bison and I try to create a small "parser/lexer" for an existing grammar.
I use the following commands
"bison/bin/bison.exe" -dv -p osl -o oslgram.cpp oslgram.y
pause
"flex/bin/flex.exe" -+ -o osllex.cpp osllex.l
pause
But I got some errors... really I don't understand what it mean ! If someone has experience with this tool it will be great ?
oslgram.y: conflits: 1 décalage/réduction, 1 réduction/réduction
bison/bin/bison.exe: m4: No such file or directory
flex/bin/flex.exe: can't open osllex.cpp
You can find more information about the project here (the .l and .y files are there) :
http://code.google.com/p/openshadinglanguage/source/browse/
Thanks
m4means you're missing them4macro package. Most distributions call itm4, soapt-get install m4oryum install m4oryast -i m4ought to do the job. The reduce/reduce conflict means your grammar is undecidable. You'll need to do more research on solving that :) but if you paste your grammar here, someone might be able to spot the problem. - sarnold