all: Implement output UI initialisation#106
Merged
juliaogris merged 3 commits intomasterfrom Mar 21, 2023
Merged
Conversation
|
firebase-deployment: https://evy-lang--106-cvl3oeu5.web.app (4954f9a) |
464deff to
1634e81
Compare
1634e81 to
c28ccf6
Compare
Expose jsActions as "evy command" to wasm main as we have no other way of argument passing to main in wasm. jsActions tells whether to format, evaluate or both. In a follow-up commit we will add the optional action "ui", to initialise UI according to code needs.
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.
ee4e0f4 to
84b5155
Compare
ccfbabb to
1643e4f
Compare
Add forceYield utility to sleepingYielder in wasm package, rather than calling yielder.Sleep(minSleepDur). This makes main.go independent of the minSleepDur constant and is probably a better name for the intent.
1643e4f to
4954f9a
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Implement output UI initialisation from evy source code analysis:
Update the parser.Program ast node to expose
CalledBuiltinFuncswhichdetermine 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.