Automatic dollar signs assignment for MIPS. Please just make sure your code contains ".globl" and your input and output files have a different name or path. Also, registers should have an interval with at least one space or tab.
To autogenerate dollar signs in your mips file:
$ python mips.py INPUTFILE \
-o FILE --output=FILE
To see the argument options, run:
$ python mips.py --help
which will print:
usage: mips.py [-h] [-o OUTPUT] input
positional arguments:
input path of the input file
optional arguments:
-h, --help show this help message and exit
-o OUTPUT, --output OUTPUT
path of the output file
- Add an option to overwrite the input file
Sooyoung Moon / @symoon94