~fd/cane-lang

4d7cbdc0c804899564e8e43ad95feadb66db8e50 — Ersei Saggi 10 months ago aa2d1d1
Use println in web playground
1 files changed, 5 insertions(+), 3 deletions(-)

M cane-wasm/index.html
M cane-wasm/index.html => cane-wasm/index.html +5 -3
@@ 34,9 34,9 @@
  </head>
  <body>
    <textarea placeholder="Code" id="code_input" rows="5">
([(`hello, world!\n' print)] 5 repeat)
([(`hello, world!' println)] 5 repeat)

(args `-' join print)</textarea
(args `-' join println)</textarea
    >
    <textarea id="args_input" placeholder="Space-separated arguments" rows="1">
arg1 arg2 arg3 (space separated)</textarea


@@ 74,7 74,9 @@ arg1 arg2 arg3 (space separated)</textarea
      }
      if (!supported) {
        document.getElementById('output').innerText = ''
        writeOut('WebAssembly not supported! This playground will not function.')
        writeOut(
          'WebAssembly not supported! This playground will not function.'
        )
      }

      import init, { interpreter } from './pkg/cane_wasm.js'