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
I am working on a project that helps transpile Processing Java code to p5.js. It would be awesome if there were a way to allow a user to click a button that redirects them to this site with their code already pasted into the editor. Perhaps making a request to a URL with the body as their project code could create a new project and redirect them to it, or something like that.
(If I have time, I can work on this feature myself -- right now I'm still finishing up the other project, so I thought I'd toss it out here to gauge interest!)
The text was updated successfully, but these errors were encountered:
hello @terabyte128
I created a Python script for a similar task, however it doesn't take of everything - you still need to review the generated code. How is your tool implemented, and do you already have something to show?
What requires a lot of work in my case is when the PDE sketch used Classes (in tabs), or imports other Java packages.
Hi @haschdl, I took the somewhat more complex route of actually parsing the Java code into a syntax tree and making visitor passes. Right now it also doesn’t handle those more complex cases but may be more easily extensible. We’ve used it in a course I taught last winter and it worked well for beginner programmers. See: https://github.com/terabyte128/pde2js
New feature details:
I am working on a project that helps transpile Processing Java code to p5.js. It would be awesome if there were a way to allow a user to click a button that redirects them to this site with their code already pasted into the editor. Perhaps making a request to a URL with the body as their project code could create a new project and redirect them to it, or something like that.
(If I have time, I can work on this feature myself -- right now I'm still finishing up the other project, so I thought I'd toss it out here to gauge interest!)
The text was updated successfully, but these errors were encountered: