rendered paste bodyImplemented integer constants, real constants, arithmetic operators.
Didn't attempt part 4.
Compile with "make"
run with "./run inputfilename.le" (you may need to "chmod u+x run" first)
Output of test1.le through test8.le and testa.le:
ASS/MULE - ASSembler/eMUlator for Language Engineering - v2.1 - Steve Gregory
---tests/test1.ass ASSEMBLY BEGINS
---tests/test1.ass ASSEMBLY ENDS
---tests/test1.ass EXECUTION BEGINS
0
1234567890
2147483647
---tests/test1.ass EXECUTION ENDS
STATISTICS:
12 instructions generated
3 registers used
12 instructions executed
ASS/MULE - ASSembler/eMUlator for Language Engineering - v2.1 - Steve Gregory
---tests/test2.ass ASSEMBLY BEGINS
---tests/test2.ass ASSEMBLY ENDS
---tests/test2.ass EXECUTION BEGINS
0.000000
12345.678711
56000000.000000
0.001200
---tests/test2.ass EXECUTION ENDS
STATISTICS:
15 instructions generated
6 registers used
15 instructions executed
ASS/MULE - ASSembler/eMUlator for Language Engineering - v2.1 - Steve Gregory
---tests/test3.ass ASSEMBLY BEGINS
---tests/test3.ass ASSEMBLY ENDS
---tests/test3.ass EXECUTION BEGINS
-5
7
-16
-0.500000
-0.700000
-1.366667
---tests/test3.ass EXECUTION ENDS
STATISTICS:
50 instructions generated
7 registers used
50 instructions executed
ASS/MULE - ASSembler/eMUlator for Language Engineering - v2.1 - Steve Gregory
---tests/test4.ass ASSEMBLY BEGINS
---tests/test4.ass ASSEMBLY ENDS
---tests/test4.ass EXECUTION BEGINS
---tests/test4.ass EXECUTION ENDS
STATISTICS:
3 instructions generated
2 registers used
3 instructions executed
ASS/MULE - ASSembler/eMUlator for Language Engineering - v2.1 - Steve Gregory
---tests/test5.ass ASSEMBLY BEGINS
---tests/test5.ass ASSEMBLY ENDS
---tests/test5.ass EXECUTION BEGINS
---tests/test5.ass EXECUTION ENDS
STATISTICS:
3 instructions generated
2 registers used
3 instructions executed
ASS/MULE - ASSembler/eMUlator for Language Engineering - v2.1 - Steve Gregory
---tests/test6.ass ASSEMBLY BEGINS
---tests/test6.ass ASSEMBLY ENDS
---tests/test6.ass EXECUTION BEGINS
---tests/test6.ass EXECUTION ENDS
STATISTICS:
3 instructions generated
2 registers used
3 instructions executed
ASS/MULE - ASSembler/eMUlator for Language Engineering - v2.1 - Steve Gregory
---tests/test7.ass ASSEMBLY BEGINS
---tests/test7.ass ASSEMBLY ENDS
---tests/test7.ass EXECUTION BEGINS
---tests/test7.ass EXECUTION ENDS
STATISTICS:
3 instructions generated
2 registers used
3 instructions executed
ASS/MULE - ASSembler/eMUlator for Language Engineering - v2.1 - Steve Gregory
---tests/test8.ass ASSEMBLY BEGINS
---tests/test8.ass ASSEMBLY ENDS
---tests/test8.ass EXECUTION BEGINS
---tests/test8.ass EXECUTION ENDS
STATISTICS:
3 instructions generated
2 registers used
3 instructions executed
ASS/MULE - ASSembler/eMUlator for Language Engineering - v2.1 - Steve Gregory
---tests/testa.ass ASSEMBLY BEGINS
---tests/testa.ass ASSEMBLY ENDS
---tests/testa.ass EXECUTION BEGINS
---tests/testa.ass EXECUTION ENDS
STATISTICS:
3 instructions generated
2 registers used
3 instructions executed