how to use it?
-
Write your program in input.txt according to syntax of my language:
declaration of variable: int a = 0; | int a; | int a = b;
if (bool_expression){ your commands }
while (bool_expression) { your commands; end }
"--" - comments
a = b + c;
You can see some examples in input.txt
- Compile code using MakeFile
- Run your code using ./a < input.txt
- The output file is out.txt: this contains commands of my CPU project, so you can run output.txt as input to CPU
- have fun of it >3 P.S. I've changed stdout -> out.txt