add comments

This commit is contained in:
Remko Tronçon 2022-04-17 17:19:15 +02:00
parent 0f0335568b
commit 05e341c865
2 changed files with 10 additions and 1 deletions

View file

@ -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

View file

@ -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() {}