a simple python interpreter mainly implemeted by lex and yacc.
- cd ./2019-compiler-lab/
- make (or you can use ./make.sh or g++ y.tab.c)
- ./a.out
- then you can input instructions and MiniPython will operate
- use CTRL-C or quit() to end MiniPython
- data structure: int,real,string,list
- arithmetic operation: +,-,*,/
- operations: append(),range(),print(),len(),list(),etc.
- index and slices operations for list and string.
- assignment operation.
- Others to add...
- search and collect the syntax of python and list them all together.
- implement the arithmetic operation of INT and FLOAT
- design the data structure that is equivalent to list in Python.
- realize the string with index and slices operation.
- implement the list with range(),append(),print(),etc.
- Others to add.