- 使用lex与yacc实现一个简易的词法分析器
- 具体支持的语法主要有:
- 支持int、char、小数类型的定义和运算
- 支持赋值语句、if语句、while语句和for语句
- 支持加减乘除四则远算、关系元算(<,<=,==,>,>=)
- 支持复合语句 "{" 和 "}"
- 支持输入输出语句
- 符号表:每一个作用域生成一个散列表(hash_map)之后以当前作用域为首结点,将其父作用域以及一系列的祖辈作用域的散列表用单项链表形式连接
-
Notifications
You must be signed in to change notification settings - Fork 0
wdyiwdwd/SimpleCompiler
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
About
编译原理大作业,实现简单的C++编译器(2017.12)
Resources
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published