Skip to content
compiler for a simplified C language
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
demo
LEX_CPP_TEMPLATE
LEX_H_TEMPLATE
PARSER_CPP_TEMPLATE
PARSER_H_TEMPLATE
README.md
YYSTYPE.h
_lex.cpp
_lex.h
_nttokens.h
_parser.cpp
_parser.h
_tokens.h
climits.h
cminus.cpp
cminus.h
cminus.l
cminus.sln
cminus.vcxproj
cminus.vcxproj.filters
cminus.y
env.cpp
env.h
main.cpp
quadruple.cpp
quadruple.h
symtable.h
yacclimits.h

README.md

cminus

This project started out as a validation for my two tools: lex,yacc, it's actually only a compiler front-end: it compiles source code to ASM code, and let MASM do the remaining job.

Cminus is a very simple language, no pointers, macros, structs... but it can still do something. I have included an example of quick sort written in this language, please see the 'demo' folder.

The code was written 3 years ago, I may get back to maintain it when I have time.

You can’t perform that action at this time.