PILOT-lang.js
A JavaScript based PILOT interpreter
PILOT code:
R :Just a simple, silly PILOT program T :This is a simple program to practice the times tables : *start C :i = 1 T :What number would you like to practice? A :n *loop T :How much is #n × #i? A : J (%answer = n * i) :*correct T :Incorrect, try again J :*loop *correct T :Correct! C :i = i + 1 J (i > 10) :*done J :*loop *done T :Good job! : *ask T :Do you want to practice another number? (y/n) A : M :y,n JM :*start, *end J :*ask *end T :Bye!
Output:
▶ Run