A C-- Language Complier. It compile source code of C-- language, whose syntax is a subset of the C programming language, to MIPS Assembly.
- Unary/Binary expression
- Multiple variable declration and assignment
int
anddouble
data typestruct
syntax (array member is not supported)- Array
- If-Else and while statement
- Function call
OS X/macOS
10.11+flex++
2.5+bison++
3.0.4+
$ make
$ bin/cmm source_file
-p
will print syntax tree
Add test source files into testcase
directory and run
$ make test