Demo program (nth Fibonacci number) in the prototype of the instruction definition and execution model #23
meganindya
started this conversation in
Show and tell
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Some of the core building blocks of the new Music Blocks instruction definition and execution framework have been built. I wrote a sample nth Fibonacci number printing program using the prototype constructs and wrote a couple of simple execution functions to run that.
It can be found here:
github.com/sugarlabs/musicblocks-lib.git develop src/.prototype/syntaxElements/sample.ts
To test, setup the project; the process is similar to what is described in this repository's
README.md
Once inside the docker container, navigate to the directory containing the
sample.ts
file usingcd src/.prototype/syntaxElements
Run the file using
Code snippet
Everything has been thoroughly explained to help follow the implementation.
Output
Beta Was this translation helpful? Give feedback.
All reactions