A little more information would be helpful, i.e. the grammar you want to use and the String input example. I donโt know how much you know about Chomskyโs grammatical levels, but thatโs the key. Simplified, a lexer can analyze the level of a word (Level 3: Regular grammars), and the analyzer syntax can also analyze (Level 2: Context-free grammars). (more information here: lexers vs parsers )
, , , , . , , , , , , . . , , lexer , ;) , , , !