Computer Science, asked by CharlottyLama7169, 1 year ago

Difference between scanning and parsing in compiler contruction

Answers

Answered by MrTSR
6

=======

Answer :

=======

- Scanning :

Turning source code into a token stream. This stage removes white space and comments, and identifies what kind of token each piece of the code is.

- Parsing :

Turning a token stream into a parse tree. This stage checks that the sequence of tokens is grammatically correct and can be grouped together according to the specifications of how the language works.

Similar questions