mirror of
https://github.com/remko/waforth
synced 2025-01-18 22:26:39 +01:00
doc: Documentation tweaks & fixes
This commit is contained in:
parent
e0cae790dc
commit
86069773e1
2 changed files with 2 additions and 2 deletions
|
@ -12,7 +12,7 @@ WAForth is a small but complete bootstrapping Forth interpreter and dynamic comp
|
||||||
WAForth is [entirely written in (raw)
|
WAForth is [entirely written in (raw)
|
||||||
WebAssembly](https://github.com/remko/waforth/blob/master/src/waforth.wat), and
|
WebAssembly](https://github.com/remko/waforth/blob/master/src/waforth.wat), and
|
||||||
the compiler generates WebAssembly code on the fly. The only parts for which it
|
the compiler generates WebAssembly code on the fly. The only parts for which it
|
||||||
relies on external (JavaScript) code is to dynamically load modules (since
|
relies on external code is to dynamically load modules (since
|
||||||
WebAssembly [doesn't support JIT
|
WebAssembly [doesn't support JIT
|
||||||
yet](https://webassembly.org/docs/future-features/#platform-independent-just-in-time-jit-compilation)),
|
yet](https://webassembly.org/docs/future-features/#platform-independent-just-in-time-jit-compilation)),
|
||||||
and the I/O primitives to read and write a character to a screen.
|
and the I/O primitives to read and write a character to a screen.
|
||||||
|
|
|
@ -59,7 +59,7 @@ class WAForth {
|
||||||
/**
|
/**
|
||||||
* Callback that is called when a character needs to be emitted.
|
* Callback that is called when a character needs to be emitted.
|
||||||
*
|
*
|
||||||
* `c` is the ASCII code of the character to be emitted.
|
* `c` is the single-character string that is emitted
|
||||||
*/
|
*/
|
||||||
onEmit?: (c: string) => void;
|
onEmit?: (c: string) => void;
|
||||||
key: () => number;
|
key: () => number;
|
||||||
|
|
Loading…
Reference in a new issue