I'm making a lexical analyzer for C language, a less-powered version.
I want to process different kinds of regular expressions at different times for example, for the first time the input character stream from the source program and then the second time, an intermediate representation form of the program generated after first processing.
So is it possible to create 2 or more yylex()
functions using FLEX and use it in a same C/C++ program, the lexical analyzer?