Skip to content

AhmedIssa11/Compiler-Design

Repository files navigation

Compiler-Design

1. Lexical Analyzer

Lexical Analysis is the first phase of compiler also known as scanner. It converts the input program into a sequence of Tokens.It can be implemented with the regular expressions.

2. Syntax Analyzer

Syntax Analysis or Parsing is the second phase,i.e. after lexical analysis. It checks the syntactical structure of the given input,i.e. whether the given input is in the correct syntax (of the language in which the input has been written) or not. The parse tree is constructed by using the pre-defined Grammar of the language and the input string.

Syntax Analysis

3. Semantic Analyzer

Semantic analysis is the task of ensuring that the declarations and statements of a program are semantically correct, i.e,that their meaning is clear and consistent with the way in which control structures and data types are supposed to be used.

Semantic analysis

4. Memory

Design memory to save variable’s values.

User Interface

User Interface

For complete documentation, check the word file .

Releases

No releases published

Packages

No packages published

Languages