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.
While implementing
provide *blocks, we noticed that for thepreludefunction ofsrc/languages/pyret/pyret-lang/translate-parse-tree.js, the returned object is a JSON that (potentially) includes nodes,instead of just returning a single object created from
makeNodelike most other functions. As of now, the implementation allowsprovide *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.