bootstrapworld / pyret-blocks

Block Language for the Pyret Programming Language
Apache License 2.0
3 stars 1 forks source link

provide * rendering #17

Open kaisucode opened 3 years ago

kaisucode commented 3 years ago

While implementing provide * blocks, we noticed that for the prelude function of src/languages/pyret/pyret-lang/translate-parse-tree.js, the returned object is a JSON that (potentially) includes nodes,

{
    provide : provide,
    provideTypes : provideTypes,
    imports : makeListTr(kids)
}

instead of just returning a single object created from makeNode like most other functions. As of now, the implementation allows provide * to not break when written in the example code files or manually inputted, but the actual rendering of the statement itself still remains an issue.

Note: This is likely a misunderstanding on our end of how the parse tree works, and/or a feature of the parse tree that was not yet completed, instead of being a bug in the project.