During the development of this compiler project, the following milestones were achieved:
-
Grammar Design
Developed the grammar for the specified programming language. -
Compiler Structure
Defined the structure of the compiler. -
Functional Blocks
Described and implemented the core functional blocks of the compiler. -
User Interface
Designed and implemented an intuitive graphical user interface. -
Testing
Tested the compiler by comparing the results of a test program with a semantically similar program in the object-oriented programming language C#.
The compiler includes the following key components:
-
Lexical Analyzer
Analyzes the source code and extracts tokens. -
Syntax Analyzer
Processes tokens to construct a syntax tree and ensure adherence to syntax rules. -
Intermediate Representation
Builds an intermediate form of the program—Polish Notation (PN). -
Execution of PN
Executes the Polish Notation code.
The programming language supports assignment operators, input and output operations with a flexible structure, as well as conditional and looping operators designed for specific tasks.