A prototype of pseudocode interpreter.
Goal of this project is to enable property and other kinds of testing in pseudocode exercises.
If you're on macOs or Linux you probably have python3 installed. Then it will be easier to install it with pip
python3.6 or greater. On windows you might need to have pypiwin32
installed
python3 -m pip install git+https://github.com/pniedzwiedzinski/pseudo.git
Download docker and follow instructions:
docker pull pniedzwiedzinski/pseudo
# Create alias
alias pdc='docker run -it --rm -v $(pwd):/home pseudo'
Create sample file file.pdc
pisz "test"
To run it type:
pdc file.pdc
test.pdc
czytaj n
pisz "Start"
# Pętla wypisuje liczby parzyste od 1 do `n`
i:=1
dopóki i<=n wykonuj
jeżeli i mod 2 = 0 to
pisz i
T[i] := 1
wpp
pisz "nie"
pisz "\n"
i:=i+1
dla a:=1,...,5 wykonuj
pisz a
- printing
- math operations
- math operations order
- type errors
- input variable
- variables
-
koniec
- conditional statement
- while loop
- for loop
- arrays
- functions
W.I.P.