Skip to content

[FEATURE] Add experimental Javascript bridge/transpiler #43

Description

@ArgosOfIthaca

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    researchNeeds further investigationtodoNot being worked on actively

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions