-
Notifications
You must be signed in to change notification settings - Fork 0
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
Prefab structures #6
Comments
Any updates on this? |
The compiler is done and passing all the tests. This includes tests for "make-prefab-struct" and struct definitions. We just need to add prefab structs to the interpreter. |
Hi, I'm merging onto your feature because I need the extra types for #22 . When I run the tests on your branch I get a single test failure:
|
Yeah, that's because we are still finishing up the interpreter. Maybe just comment out the prefab structure tests for now |
Add support for prefab structures. An instance of a prefab structure can be represented as a heap-allocated structure that consists of a key and an array of field values. The key should be a symbol (so this will depend on #5) and you should implement
make-prefab-struct
as described in the Racket docs. (This does not need to support other kinds of keys beyond symbols).After adding run-time support for prefab instances, add prefab
struct
definitions to set of allowable definitions in a program. A prefabstruct
definition should bind names for a constructor, predicate, and accessor functions for instances of a prefab.The text was updated successfully, but these errors were encountered: