questmark-yarn
TypeScript icon, indicating that this package has built-in type declarations

0.0.7 • Public • Published

QuestMark-Yarn

This is a very experimental compiler from Yarn Spinner 2.0 to the QuestMark QuestVM (Tzo) specification, which allows Yarn Spinner scripts to be executed in a wide variety of environments for which there is a Tzo or QuestVM implementation (currently: C, TypeScript, Rust - though creating one for another language isn't particularly difficult due to the simple nature of the Tzo VM)

Not everything is supported, but basic scripts might work, with possibly some modifications.

Usage

Many basic constructs should compile to QuestVM/Tzo bytecode easily. Advanced Yarn scripts have not been tested.

Arbitrary Tzo ConciseText code can be inserted via <<$ BYTECODE_HERE >>. In case functionality does not work or is not implemented, it's recommended to resort to Tzo bytecode instead.

Usage

npx questmark-yarn --input input.yarn --output yarn_out.json

The .json can then be interpreted via the QuestMark QuestVM interpreter:

npx questmark --input yarn_out.json

/questmark-yarn/

    Package Sidebar

    Install

    npm i questmark-yarn

    Weekly Downloads

    70

    Version

    0.0.7

    License

    MIT

    Unpacked Size

    5.06 MB

    Total Files

    64

    Last publish

    Collaborators

    • jorisd