Skip to content

Designed a mini-C compiler utilizing Lex and Yacc for the purpose of translating C code into a machine-readable format. Implemented both the Lexical Analyzer and the Lexical Parser.

Notifications You must be signed in to change notification settings

parissashahabi/Mini-C-Compiler

Repository files navigation

Mike Compiler

  • It comprised of two phases:
    • Lexical Analyzer
    • Parser

Steps to run

Only flex and bison are required to be installed on your machine. The code has been tested last on Ubuntu 20.04.

sudo apt install flex
sudo apt install bison

Then run:

bison -d parser.y
flex lexical_analyzer.l
gcc -o compiler parser.tab.h parser.tab.c lex.yy.c -ll
./compiler

Team Members

About

Designed a mini-C compiler utilizing Lex and Yacc for the purpose of translating C code into a machine-readable format. Implemented both the Lexical Analyzer and the Lexical Parser.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published