I use fslex, and in one of the rules of my tokenizer, I need to look for the next char so that I can decide whether to continue tokens or stop, relax, and allow the old rule to be used.
I did some verification of the source code, and it seems that the only way is to compile a version that provides some internal methods. Maybe someone has a better solution?
source
share