Course_Compilation_AST-master
所属分类:Java编程
开发工具:WINDOWS
文件大小:99KB
下载次数:0
上传日期:2020-10-22 02:55:29
上 传 者:
chinese virus
说明: chinese virus xi ping pong java
文件列表:
AST_exercise2016B.doc (156160, 2016-07-22)
Makefile (696, 2016-07-22)
ast.cpp (1075, 2016-07-22)
ast.h (7473, 2016-07-22)
ast.lex (1984, 2016-07-22)
ast.tab.c (68424, 2016-07-22)
ast.tab.h (4245, 2016-07-22)
ast.y (6521, 2016-07-22)
examples (0, 2016-07-22)
examples\and.txt (165, 2016-07-22)
examples\and_out.txt (234, 2016-07-22)
examples\cast.txt (385, 2016-07-22)
examples\cast_out.txt (458, 2016-07-22)
examples\do_while.txt (145, 2016-07-22)
examples\do_while_out.txt (194, 2016-07-22)
examples\errors.txt (409, 2016-07-22)
examples\for.txt (116, 2016-07-22)
examples\for_out.txt (211, 2016-07-22)
examples\if.txt (175, 2016-07-22)
examples\if_out.txt (207, 2016-07-22)
examples\imply.txt (166, 2016-07-22)
examples\imply_out.txt (244, 2016-07-22)
examples\nestedWhile.txt (186, 2016-07-22)
examples\nestedWhile_out.txt (322, 2016-07-22)
examples\nestedWhile_with_break.txt (274, 2016-07-22)
examples\nestedWhile_with_break_out.txt (496, 2016-07-22)
examples\nestedWhile_with_error_break.txt (228, 2016-07-22)
examples\not.txt (171, 2016-07-22)
examples\not_out.txt (159, 2016-07-22)
examples\or.txt (204, 2016-07-22)
examples\or_out.txt (339, 2016-07-22)
examples\readWrite.txt (141, 2016-07-22)
examples\readWrite_out.txt (122, 2016-07-22)
examples\switch.txt (225, 2016-07-22)
examples\switch_error.txt (279, 2016-07-22)
examples\switch_no_break.txt (236, 2016-07-22)
examples\switch_no_break_out.txt (295, 2016-07-22)
... ...
# Course_Compilation_AST
A three-address code compiler using AST for Mr. Gadi Pessah's Compilation course @ Afeka College
It recognizes the following syntax commands:
```
+
-
*
/
<
>
<=
>=
==
!=
(
)
=
;
:
{
}
if
else
while
int
float
or
and
not
=>
for
switch
case
default
break
read
do
```
## Built With
* Visual Studio Code
* flex
* bison
* g++
## Building
```
flex ast.lex
bison “d ast.y
g++ -o myprog.exe ast.tab.c lex.yy.c gen.cpp symtab.cpp ast.cpp
```
## Running
To run you must first create a code input file according to the supported syntax.
One of the basic examples under "examples" can be used.
Run: `myprog `
## Authors
* **Gadi Pessah** - *Initial work*
* **Omer Elgrably** ( @omerel) - *Updates according to requests*
* **Barr Inbar** (@barrinbar) - *Updates according to requests*
近期下载者:
相关文件:
收藏者: