This project centers on enhancing code reliability and correctness by conducting syntax analysis, function verification, and type checking. By parsing source code from a .txt file, we identify syntax errors early, preventing runtime issues. Function verification ensures accurate function usage, minimizing logical errors. Comprehensive type checking confirms data type compatibility, reducing type-related bugs.
The project employs formal grammar and programming language theory to define rules for valid syntax and behavior. We use efficient data structures like abstract syntax trees (ASTs) and algorithms such as recursive descent parsing for accurate analysis. Error reporting and feedback mechanisms provide developers with precise information for effective debugging.
Extensive testing with diverse scenarios ensures the system's accuracy and performance. In conclusion, our project offers a versatile tool for programmers to enhance code quality and reliability by addressing syntax, function, and type-related concerns, all derived from a simple .txt file input.
COURSE DESCRIPTION CSC 3220
Click to More about Course
- Introductory concepts and Phases of compiler
- Lexical Analyzing; Introduction to FLEX
- Syntax Analyzing; Parsing; Syntax Directed Translation and Type checking
- Syntax Directed Translation and Type checking
- Introduction to YACC or BISON
- Storage allocation strategies
- Code Optimization
Need to Download:
CLion or Code::Blocks or C++ Compilers: MinGW / GCC
Any Text Editor
Download or Clone
git clone https://github.com/thesanjida/compiler-project-section-d
Goto folder compiler-project-section-d
open project via any IDE
or complier
open input.txt
on any text editor and write C++ syntax
Language | Version | Tools & Technology |
---|---|---|
C++ | 17 | CLion |
-
This project is very basic, using C++ Library files
-
Sometimes might be crash or error