An open API service indexing awesome lists of open source software.

https://github.com/davidyslu/simple_compiler

Simple compiler with Yacc and Lex
https://github.com/davidyslu/simple_compiler

Last synced: about 1 year ago
JSON representation

Simple compiler with Yacc and Lex

Awesome Lists containing this project

README

          

# Simple Compiler

[![License: IEEE](https://img.shields.io/badge/License-CC%20BY--NC--SA%204.0-lightgrey.svg)](http://creativecommons.org/licenses/by-nc-sa/4.0/)

## Installation

* Compilation
```bash
$ make lex
$ make yacc
$ make
```
* Execution
```bash
./parser < test.c > test.asm
```

## TODO

* `PRINT` and `READ` need to fix.
* `LEA` need to fix.

## Author

* [Yung-Sheng Lu](http://github.com/yungshenglu)

---
[![License: IEEE](https://img.shields.io/badge/License-CC%20BY--NC--SA%204.0-lightgrey.svg)](http://creativecommons.org/licenses/by-nc-sa/4.0/)