+ 18
Lexer and parser
What is Lexer and parser ? What is a difference between these two?
2 ответов
+ 3
A lexer is a software program that performs lexical analysis. ... A parser goes one level further than thelexer and takes the tokens produced by the lexer and tries to determine if proper sentences have been formed. Parsers work at the grammatical level, lexerswork at the word level.

https://www.quora.com › What-is-th...
+ 2
Whereas "name my is Rahul" makes no sense. This is the basic difference between a lexical analyzer and parser. ... A parser implements a higher level grammar using the tokens as input. It does things that a lexical analyzer cannot, such as balance parentheses.

https://www.quora.com › Compilers...
Compilers: Main difference between lexical analyzer and parser ...