Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Library function return & param types (primitives-config) #18

Open
kaisucode opened this issue Feb 8, 2021 · 0 comments
Open

Library function return & param types (primitives-config) #18

kaisucode opened this issue Feb 8, 2021 · 0 comments

Comments

@kaisucode
Copy link
Collaborator

Right now, the prototype for method calls' return and parameters types rely on primitives-config.js file, borrowed from the wescheme-blocks project. This should be tailored to support Pyret's library methods and their return/parameter types (and number of parameters) instead.

In addition, currently the type validation from the file is done by referring to a constant in PyretParser.ts named FIXED_SIZE_DATATYPES, but that should be expanded in the future to take other, non-fixed size datatype names as well. All unrecognized types are classified as "untyped" and still rendered.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant