Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Javascript Wrapper for compiling js to jsc. #14

Open
TristonStuart opened this issue May 27, 2020 · 2 comments
Open

Javascript Wrapper for compiling js to jsc. #14

TristonStuart opened this issue May 27, 2020 · 2 comments

Comments

@TristonStuart
Copy link

I made a wrapper for this project using the engine and the javascript provided by emscripten.

https://github.com/TristonStuart/JS_To_JSC

The goal of the wrapper is to allow easy javascript use of the jsc_compile and evaluate functions.
It also allows conversion from the hex string provided to a UTF8 string which reduces the size of the string by half.

The wrapper can import .jsc files, make .jsc files, set the encoding of jsc (either hex, UTF8 raw, or UTF8). The wrapper also has a UTF8 encoding shifted from 0-255 to 183-438 to allow for easier copy and pasting. It can also translate these from their encoding to a byte array.

@mbbill
Copy link
Owner

mbbill commented May 27, 2020

this is awesome!

@X7md
Copy link

X7md commented Jul 18, 2022

Exactly what I was looking for...

Thanks.

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

No branches or pull requests

3 participants