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

https://github.com/trilliwon/cminus-compiler

C- Compiler for Programming Assignment
https://github.com/trilliwon/cminus-compiler

cminus cminus-compiler compiler

Last synced: 3 months ago
JSON representation

C- Compiler for Programming Assignment

Awesome Lists containing this project

README

        

# cminus-compiler

1. Scanner
- Implementation Of Lexer
- Using [flex](https://en.wikipedia.org/wiki/Flex_(lexical_analyser_generator))
2. Parser
- just using yacc
3. Semantic analyzer
- Implementation of Symbol Table
- Implementation of Type Checker

# Semantic Analysis

- main.c
- [x] Modify NO_ANALYZE, TraceParse, and TraceAnalyze to suit your assignment
- `symtab.h` `symtab.c`
- [x] Add scope and type to symbol table
- [x] Implement hash table
- analyze.c
- [x] Insert built-in function
- Input(), output()
- [x] Modify symbol table generation
- [ ] Modify the checkNode() function to check the semantics of C-Minus

### [Original Code](http://www.cs.sjsu.edu/~louden/cmptext/)

# Execution

```
$ make
$ ./compiler gcd.cm
```