Skip to content

Latest commit

 

History

History
9 lines (5 loc) · 529 Bytes

README.mkd

File metadata and controls

9 lines (5 loc) · 529 Bytes

#Introduction

This a C compiler written purely in C, which converts C source code to AT&T syntax assembly.

A large amount of work is devoted to the automatic generation of LR(1) automaton, which is often done by tools like Yacc or the newer Bison. You can treat this project as a minimum and conscious demonstration of the tricks behind tools like Bison.

The semantics part used a straight-forward abstract syntax tree (AST) approach, memory efficiency is traded off for consciousness, but this ANSI-C program is still fast.