/CompilerLab

A tricky compiler generator

Primary LanguageC++

A Toy Compiler

Join the chat at https://gitter.im/gaocegege/CompilerLab

项目地址

本项目所有内容在Github上可获得,地址为https://github.com/gaocegege/CompilerLab

代码说明文档

http://gaocegege.com/CompilerLab/

文件结构

source/								源代码文件夹
	LLVM-Simple-Wrapper/			LLVM封装代码
	UI/								图形化界面
	parser/							前端
	semantic/						语义分析
	ml.cpp							编译文件
	ml_clang						二进制文件
	...
bnf/
	syntax.md						bnf文件
case/								各种用例,有正确的有错误的用例
Final/
	...								放置各种答辩需要的材料
labenv/								无意义
asm/								无意义

编译命令

./ml.cpp
./ml_clang <filename>