Skip to content

reevu1/mini-c-compiler

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Mini C Compiler

A small C compiler for a simplified subset of the C language, built from scratch in C.

Features

  • Lexical Analysis (Lexer)
  • Recursive Descent Parser
  • AST Construction
  • Semantic Analysis (Symbol Table, Type Checking)
  • Stack-Based Code Generation
  • Mini Virtual Machine (optional)

Project Structure

  • src/ – source code
  • docs/ – design documents and grammar
  • tests/ – unit tests
  • examples/ – sample programs the compiler can compile

How to Build

make
./mini-c program.c

About

A mini C compiler with lexer, parser, AST, semantic analysis, and codegen.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages