Sweet Little Language

I'm designing a little language that can run in a web page.

I'll divide the page into three sections, the program, the start buttons and the output.

The output will have two parts, the normal output and the trace output that shows every line of the program as it runs. There will be two buttons too. Run will produce just output. Trace will produce trace and normal output.

Click any version to launch an interpreter.


Choose View Page Source to see the implementation.

Try the latest version here.

http://ward.asia.wiki.org/assets/pages/sweet-little-language/v3.html HEIGHT 300

# Improvements

v1 defines the parts of the page.

v2 shows, saves and runs a print-only program

v3 add a stack for intermediate results


Alain Marty shared a 1.5 version in Turing complete lambdatalk. page page