Language process Activities

Language process activities are broadly divided into two points:-

  1. Analysis of source program
  2. Synthesis of the target program

 Language Process Activities

Language Process activities= Analysis of source program + Synthesis of the target program

A specification source language form, The basis of source program analysis. The specification consists of three components.

Language Processors

1. Lexical Analysis(Scanning):-

Lexical Rules govern the formation of the valid token in the Source Language.

  The first phase of the scanner works as a text scanner. This phase of the scanner, The source code as shown as the character and convert it into meaning fun, lexis. Lexical analyzer represents these Alexis in the form of tokens.

<token_name, attribute_name>

2. Syntax analysis(Persing) in Language process activities:-

This governs the formation of valid statements in the source languages.

The next phase is called the syntax analysis as pursing. It takes the token produces by the lexical analyzer as input and generate a phase, tree or syntax tree.

In this phase token arrangement, the checked against the source code grammar.

Ie:- The passes checks if the expressions made by the token is syntaxilly correct.

It the build an IC( Intermediate code ) which represents the structure of the statements. The IC is passed to semantic analysis to determine the meaning statements.

3. Semantic Analysis:-

Semantic analysis checks whether the passes three constructed as follows the rules of language for example:- Assignments of value is between compatible data types and adding a string of an integer.

Also, the semantic analysis produces an annotated syntax tree, the tree as an output.

The analysis ends when the tree has been complexity processed. The updated table and sequence of action contribute to the Intermediate Representation (IR) produced by the analysis phase.

4. Synthesis of the target program ( The backend synthesis of target program performs memory allocation and code generation.

1. Memory allocation:-

Memory allocation is a simple task given the presence of the symbol table. The memory requirement of an identifier is computed from Its type, length, and dimensionally and memory is allocated to it.

If you want to learn more topics on System Software then Click ON the red link

System Software

LEAVE A REPLY

Please enter your comment!
Please enter your name here