Hello,
I am trying to make a compiler. Don't ask me why because I am making it for fun and experience. I have made a lexical analyser in c++ (I didn't use flex). I now want to make the parser for which I want to use Bison. But I am having problems.
1) how do you specify which function is the lex analyser (I saw the manual, made a yylex function and made it return the numeric value for each token (it is enumerated).
2) Can you please give me some kind of base code on which I can build upon, like putting new rules etc.