Skip to content

Commit

Permalink
sanitize RTS string output
Browse files Browse the repository at this point in the history
  • Loading branch information
olincb committed May 13, 2022
1 parent 4c802b5 commit 5521a65
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 1 deletion.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,7 @@ Alternatively, your syntax checker may fail to do anything at all, because of th
- Tail recursion
- Lambdas with arbitrary signatures
- update the wat AST in the README to reflect more recent changes
- RTS printing for heap structures

## Complete

Expand Down
2 changes: 1 addition & 1 deletion server/public/runtime.js
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ function run(){
console.log("unwrapped: ", unwrappedResult);
result = unwrappedResult;
console.log("result: ", result);
output.innerHTML = output.innerHTML + result;
output.innerHTML = output.innerHTML + result.replace("<", "&lt;").replace(">", "&gt;");
})();
}

Expand Down
2 changes: 2 additions & 0 deletions tests/hustle/8.wkt
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
#lang wacket
(cdr (cons #\a (cons #\b '())))

0 comments on commit 5521a65

Please sign in to comment.