A small programming language and compiler implemented using Bison/YACC and C++ as part of a Compiler Design project.
The language supports basic programming constructs such as:
- primitive data types (
int,float,string,bool) - classes and objects
- arithmetic and boolean expressions
- control structures (
if,while) - functions and a predefined
Print(expr)operation
The compiler performs syntax analysis, semantic checks and expression evaluation using Abstract Syntax Trees (AST) and symbol tables for different scopes (global, class and function).
C++ • Bison/YACC • AST • Symbol Tables • Compiler Design