Code generator program using python
-
Updated
May 31, 2020 - Python
Code generator program using python
CalcScript — a programmable calculator language compiler. Six-phase pipeline (Lexer → Parser → Semantic Analysis → TAC IR → Optimizer → VM) built in pure Python. CS4031 Compiler Construction, FAST-NUCES Karachi, Spring 2026.
Three address code syntactic analyser and interpreter
Educational compiler and Tkinter playground for EspanyoLang, featuring lexing, parsing, semantic analysis, TAC optimization, pseudo-assembly generation, and execution.
Academic group project: compiler for the MOCP language with ANTLR parsing, semantic analysis, three-address code generation, optimization, and Python code generation.
A Mini-C Compiler built using Python and PLY implementing lexical analysis, syntax analysis, semantic analysis, AST generation, and Three-Address Code (TAC) generation.
Full C compiler with PLY: lexical analysis, parsing, AST, semantic checking, TAC generation, optimization, and code generation.
Can LLMs learn a programming language they've never seen? A from-scratch compiler for MiniLang, used as an uncontaminated benchmark where Claude, GPT and Qwen learn it from the spec and debug through a compiler-as-tool agent loop. MCP server included.
Educational compiler in Python: lexer, LR(0) parser with ACTION/GOTO table, syntax-directed translation and three-address code, with a step-by-step web UI.
A one-pass compiler for C-minus, written from scratch in Python: hand-written DFA scanner, table-driven LL(1) parser, semantic analyser and three-address code generator with support for recursion.
Arithmetic expression translator with lexer, LL(1) parser, and 3-address intermediate code generation in Python
A single-pass compiler for EEL (Educational Imperative Language) written in Python, featuring recursive-descent parsing, static scope symbol tables, intermediate quadruple IR with optimization passes (constant folding & DCE), MIPS 32-bit assembly codegen, and ANSI C debug output.
Advanced C-minus compiler with LR(1) parser, custom intermediate code generation, and Tester-compatible three-address code output, designed for Sharif University's Compiler Design course.
To associate your repository with the three-address-code topic, visit your repo's landing page and select "manage topics."