vsinha / simple_c_compiler

a stripped down C compiler written using Lex and YACC for Purdue's Computer Architecture course

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

This is a compiler for the simple C language It uses the following datatypes (all 8 bytes): long, long*, char*, char**, void

Typing 'make' in the main directory will build the compiler and link it as the executable 'scc' (for simple c compiler)

If you're in the 'tests' directory, running the 'testall' shell script will run all the tests the project is graded against.

The important parts of source code are entirely in simple.l and simple.y, most other things are for testing purposes

About

a stripped down C compiler written using Lex and YACC for Purdue's Computer Architecture course


Languages

Language:Assembly 50.0%Language:C 48.3%Language:Shell 1.2%Language:Python 0.5%