Skip to content

Commit 8691d06

Browse files
committed
SIL Compiler COMPLETE with Interpreter and SIM code generation!! Hahaaa!
1 parent e164acf commit 8691d06

File tree

11 files changed

+270
-384
lines changed

11 files changed

+270
-384
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ Main/t.c
1212
Main/sil
1313
Main/SIM_Simulator/sim
1414
Main/SIM_Simulator/lex.yy.c
15+
Main/SIM_Simulator/SIMcode
1516

1617
*.o
1718
*/*.o

Main/SILsource1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
decl
2-
integer swap(integer &a,&b),arr[5];
2+
integer swap(integer &a,&b),arr[5];
33
enddecl
44

55
integer swap(integer &a,&b){

Main/SILsource2

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,4 +34,3 @@ integer main( ) {
3434
return 1;
3535
end
3636
}
37-

Main/SIM_Simulator/Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ lex.yy.c: data.h instr.h decode.lex
44
flex -i decode.lex
55

66
sim: simulator.c lex.yy.c
7-
gcc -o sim simulator.c
7+
gcc $(CFLAGS) -o sim simulator.c
88

99
clean:
1010
rm lex.yy.c sim

Main/SIM_Simulator/SIMcode

Lines changed: 0 additions & 98 deletions
This file was deleted.

0 commit comments

Comments
 (0)