Replace StringRange w/ an actual StrRVal + more command implementations

This commit is contained in:
2026-02-09 22:15:33 -06:00
parent 82eda43dad
commit feba84051a
29 changed files with 502 additions and 192 deletions

13
src/vm/output.ts Normal file
View File

@@ -0,0 +1,13 @@
import {StrRVal} from "./commands/command.js";
export const getSubjectDisplay = (sub: StrRVal): string => {
if ( sub.term === 'string' ) {
return sub.value
}
if ( sub.term === 'int' ) {
return String(sub.term)
}
return JSON.stringify(sub.value, null, '\t') // fixme
}