I'm currently making a RUBY language parser. My question is that I want to use two tokens for one character. For example, in the lexer I write
"(" { return tLPAREN; return tLPAREN2; }
while the token tLPAREN2 DON,T WORK.
How to make two tokens can handle 1 character. It would help me get rid of conflicts in grammar.
Flex version 2.6.3 source code and win_bison based on Bison version 2.7
"(" { return tLPAREN; return tLPAREN2; }
while the token tLPAREN2 DON,T WORK.