Expression_Compiler
The aim of the project is to produce the assembly instructions of a given expression.
Procedure
The program takes "example.co" file as input and gives "example.asm" file as output. All my output files work with a86.
Execution
-
At first the example.co and the COMPCompiler.java must be in the same directory
-
And then try to compile COMPCompiler.java in command line
- javac COMPCompiler.java
-
And then try to execute COMPCompiler.class in command line
- java COMPCompiler
-
There will be an output file named "example.asm" in the directory
-
And then try to run "example.asm" with a86
- a86 example.asm
-
Finally run the "example.com"
- example.com