Skip to content
This repository has been archived by the owner on Apr 27, 2024. It is now read-only.

The Compiler Design project for Computer Science department.

Notifications You must be signed in to change notification settings

mahmoudmohamedramadan/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

User Interface

User Interface