*input*
stdin hack for Computer Class
#61
Labels
No Label
accepted
bug
clj
documentation
enhancement
errors
infrastructure
later
next
now
optimization
proposal
question
research
semantics
syntax
ux
vm
wontfix
No Milestone
No project
No Assignees
2 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: twc/ludus#61
Loading…
Reference in New Issue
Block a user
No description provided.
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Pulling this out as a separate issue. Only requires work in Ludus-web, does not touch the interpreter. Still keeping it in this repo for the time being, since it solves a problem in language design & use.
*input*
should be replaced in the source code sent to the WASM interpreter with whatever the user has typed in the "input" box.Ensure escaping is correct:
\"
\{
, else the string will be treated as a template string.This is done and working.
However, I ended up not adding anything specific to escape those characters, since it looks like that is happening in the js
run
function somewhere already? quotes and braces in the input box don't seem to break anything, unless it is invalid ludus in the place where the input is substituted.@scott -- do you want to check it out before i close the issue? i might be missing something with the escape characters... it's pushed to main now --
a1c829e457
There was a bug: we weren't quoting the input that's been replaced. I haven't done more robust escape testing. But things are wired up now, in
27b95515b0
"
and{
need escaping; will do that tomorrow.is this best done in the janet side? or in the js side?
Done at some point in ludus-web; fixed underlying scanning issue in
9584a21521
.