mirror of
https://github.com/remko/waforth
synced 2024-12-26 09:59:09 +01:00
add comments
This commit is contained in:
parent
0f0335568b
commit
05e341c865
2 changed files with 10 additions and 1 deletions
|
@ -6,7 +6,8 @@
|
|||
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
||||
;; External function dependencies.
|
||||
;;
|
||||
;; These are provided by JavaScript.
|
||||
;; These are provided by JavaScript (or whoever instantiates the WebAssembly
|
||||
;; module)
|
||||
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
||||
|
||||
;; I/O
|
||||
|
|
|
@ -19,6 +19,14 @@ const arrayToBase64 =
|
|||
return Buffer.from(s).toString("base64");
|
||||
};
|
||||
|
||||
/**
|
||||
* Small JavaScript shell around the WAForth WebAssembly module.
|
||||
*
|
||||
* To users, provides the functions to interact with the WebAssembly module.
|
||||
*
|
||||
* To the WebAssembly module, provides the infrastructure to dynamically load WebAssembly modules and
|
||||
* the I/O primitives with the UI.
|
||||
* */
|
||||
class WAForth {
|
||||
constructor() {}
|
||||
|
||||
|
|
Loading…
Reference in a new issue