Hire Our Expert Programmer & Technical Writer To Do Your Capstone Project
+1 vote
in Compilers & Operating Systems by (user.guest)

1 Answer

+1 vote
by (user.guest)
selected by (user.guest)
Best answer

Differences between syntax and lexical analysis:

Lexical AnalysisSyntax Analysis
It converts characters into pattern of tokensIt process a string symbols either natural or computer language, and ensures it satisfies the rule of formal grammar.
It reads the program one character at a timeTakes tokens as input and generates a parse tree as output.
It is the first phase of the compiler It is the second phase of the compiler.

Welcome to CPENTalk.com

Disclaimer: Every user is solely responsible for anything that he/she posts or uploads on CPENTalk.