+ 18
Lexer and parser
What is Lexer and parser ? What is a difference between these two?
2 Answers
+ 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 ...