I am looking for a very short working example of flex and bison with an accompanying Makefile which makes use of the builtin rules. I\'ve tried several google results that were
You could start by looking at the wikipedia bison page. It has a full sample code of reentrant parser written with bison. It uses flex as the lexer and it also has a sample code on how to use it.
If you have any corrections I thank you in advance :)
LATER: The code on wikipedia was tested on linux (gcc) and windows (visual studio) and should work with other compilers also.