This project built for a class group assignment for compiler design 4th year 1st semester. for rust programming language using
YACC
ANDBISON
.
first install
bison
andyacc
depending on your operating systemThen run the following commads
- Running This command will result in
y.tab.c
&y.tab.h
yacc -dy parser.y
- Running This command will result in
lex.yy.c
lex scanner.l
- Running This command will result in
a.out
in ubuntu ora.exe
on windows
cc lex.yy.c y.tab.c
- Then run tha executable file with an input
rust.rs
./a.out rust.rs