A straight line program interpreter written in Kotlin
- Kotlin Command Line Tool
# Install Kotlin Command Line Tool through homebrew brew install kotlin
Navigate into src
folder and run:
kotlinc * -d slp.jar
You should see that a jar file called slp.jar is generated inside the folder
To execute the interpreter, run the following command under the same directory:
kotlin -cp slp.jar StraightLineProgramKt
Example program:
program => a := 5+3; b := (print(a, a-1), 10*a); print(b)
Output:
8 7
80
Harry Liu - Initial works
This repo is maintained under MIT license