You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Implement output UI initialisation from evy source code analysis:
* show/hide canvas if there are some/no drawing functions in evy code.
* show/hide read input text field
* show/hide sliders
Update the parser.Program ast node to expose `CalledBuiltinFuncs` which
determine UI changes. Include eventhandler implementation in code analysis.
Note: there is a race condition when navigating back/forwards between
stopping the program and reinstantiating wasmInst for formatting / ui initialisation of new code.
wasmInst is asynchronously set to undefined after the wasm
execution has finished and called afterStop function.
This merges the following commits:
* frontend: Expose jsActions as evy command
* all: Implement output UI initialisation
* wasm: Add forceYield utility
frontend/index.js | 71 +++++++++++++++++++++++++++--------
pkg/evaluator/evaluator.go | 6 +--
pkg/parser/ast.go | 7 +++-
pkg/parser/expression.go | 4 +-
pkg/parser/parser.go | 22 ++++++++++-
pkg/parser/parser_test.go | 12 ++++++
pkg/wasm/imports.go | 7 +++-
pkg/wasm/main.go | 77 ++++++++++++++++++++++++++------------
8 files changed, 157 insertions(+), 49 deletions(-)
Pull-Request: #106
0 commit comments