[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Bug-apl] Finally turned javascript version to a true REPL interpreter
From: |
baruchel |
Subject: |
[Bug-apl] Finally turned javascript version to a true REPL interpreter |
Date: |
Sun, 30 Mar 2014 20:50:31 +0200 |
User-agent: |
Heirloom mailx 12.5 6/20/10 |
Hi,
I had to work more in order to turn the interpreter to an asynchronous process
(if you don't know about javascript: in two words, a javascript program can't
"wait" for input from the user; you have to make your program event-based).
I finally made the interpreter completely leave between each interaction, but
with current state remaining in memory between each call.
At first glance, it seems to work: http://baruchel.hd.free.fr/apps/apl/i/
(the other version is still here: http://baruchel.hd.free.fr/apps/apl/ and
it has a different purpose).
You can know use it as an online interpreter. I will add some colors/themes
in the days to come, but the most difficult part is done.
Regards,
--
Thomas Baruchel