scalu
scalu copied to clipboard
[FEATURE] Add experimental Javascript bridge/transpiler
Is your feature request related to a problem? Please describe. It would be pretty neat if endusers and external projects could use Scalu inside a web context. The Mastercomfig project has expressed some interest in using such a thing.
Describe the solution you'd like Brython is a pretty straightforward and well used Python/Javascript bridge. Ideally, we could make a build process that outputs a plug and play JS file that exposes a function that takes a Scalu program as input and outputs cfg as output, as a start.
Describe alternatives you've considered A principled rewrite in JS is still possible, but unlikely to be done this millennium. It's been suggested that we look into PScript as the interpreter bridge, though from what I can see PScript lack some of the features used in the current Python implementation of Scalu.