School Project: Not so Swift Language compiler
- input - significantly simplified Swift language constructions
- output - PL/0 instructions
- technology - PLY (Python lex-(Yacc/recursive descent))
- parameters in func can be literal
- return value
- else branch
- for (c like)
- while
- repeat while
- ternary operator
- boolean
todo
- array
- string
finished
not_so_swift_compiler.py -h
or look at releases
usage: not_so_swift_compiler.py [-h] -i F_INPUT [-o OUT]
[-qt SHOW_TREE_WITH_PYQT5]
Not so swift compiler.
optional arguments:
-h, --help show this help message and exit
-i F_INPUT, --f_input F_INPUT **(mandatory)**
path to input file...
-o OUT, --out OUT path to output dir...
-qt SHOW_TREE_WITH_PYQT5, --show_tree_with_pyqt5 SHOW_TREE_WITH_PYQT5
True/False (**note** - need pyqt5~=5.15 if True)