Skip to content

Conversation

tekknolagi
Copy link
Owner

This is a hacky prototype but shows how easy it would be to compile scrapscript->JS in scrapscript. Once I get tests for this working I would like to re-write in scrapscript and land that instead.

@tekknolagi tekknolagi temporarily deployed to scrapscript-pr-90 January 10, 2024 18:02 — with GitHub Actions Inactive
@@ -1254,6 +1255,91 @@ def bencode(obj: object) -> bytes:
raise NotImplementedError(f"bencode not implemented for {type(obj)}")


class JSCompiler:
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🙏 you know what I'm thinking

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

imports are our friends

Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is just a prototype before doing it in scrap

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

Successfully merging this pull request may close these issues.

2 participants