Explain fundamentals of language processing in system programming
Answers
Answer:
Fundamentals of Language Processing Language Processing = Analysis of SP + Synthesis of TP Collection of Language Processing components engaged in analysis a source program as the analysis phase and components engaged in synthesizing a target program constitute the synthesis phase.
Fundamentals of language processing in system programming is as follows:
Language processing is a combination of SP Analysis and TP Synthesis. There are multiple phases are involved in language processing, such as-
• Analysis Phase: It again has three components - Lexical rules, Syntax rules and Semantic rules.
• Synthesis Phase: In this phase, target statements having the same meaning as source statement are addressed. Two main activities are performed in this phase - Memory allocation and Code generation.
Generally, the cycle goes like this - Source Program > Analysis phase > Synthesis phase > Target program. Errors are troubleshooted in the intermediate phases.