You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
intermediate types can toString to the exact cpython value, while maintaining metadata to construct skulpt types.
drawbacks:
our ast differs from cpythons because well use javascript types (with maybe annotation) we would need extra information to construct the right python type.
benefit:
not tied to skulpts implementation
The text was updated successfully, but these errors were encountered:
Adding another idea.
Another way we could integrate with skulpt might be to pass a space object as an argument to the parser
(I think this is what pypy does)
space would need to implement pyStr, pySyntaxError, pyAdd essentially everything inside the mock_types folder and internally we just use our mock_types.
An advantange here is that we don't need to double up on methods in production code. And we also don't need to rely on the window.Sk object being defined globally.
postpone making python types till in compiler
intermediate types can
toString
to the exact cpython value, while maintaining metadata to construct skulpt types.drawbacks:
benefit:
The text was updated successfully, but these errors were encountered: