Hello,
Will you please share the details of the lexical analysis that you want to develop?
Also, please tell if we can use the flex/bison for developing the lexical analyzer. Further, I can also help you in developing the syntax analyzer (parser) for the same, if required.
Regards..