+ 18

Lexer and parser

What is Lexer and parser ? What is a difference between these two?

13th Jul 2019, 3:44 AM
Tushar
Tushar - avatar
2 Respuestas
+ 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...
13th Jul 2019, 1:37 PM
Muhammad Galhoum
Muhammad Galhoum - avatar
+ 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 ...
13th Jul 2019, 1:38 PM
Muhammad Galhoum
Muhammad Galhoum - avatar