Ninjas Practicing Multidimensionality

    langium-statemachine-dsl
    TypeScript icon, indicating that this package has built-in type declarations

    1.0.0 • Public • Published

    State Machine Example

    Generator CLI

    The State Machine Example features a generator that you can run via cli.

    • Ensure the complete project was properly built, otherwise run npm install from the root of the Langium project.
    • Use node ./bin/cli from the statemachine directory to run the cli. Follow the instructions or use node ./bin/cli generate <full-path-to-statemachine-file>.

    The generator produces a C++ cli to walk over the statemachine's states.

    • Run gcc <full-path-to-generated-cpp-cli> -lstdc++ -o cli to get the executable file cli.o.
    • Use ./cli to run the cli. Enter an event name to pass to the next state.

    You also can use statemachine-cli as a replacement for node ./bin/cli, if you install the cli globally.

    • Run npm install -g ./ from the statemachine directory.
    • Use statemachine-cli to run the cli. Follow the instructions or use statemachine-cli generate <full-path-to-statemachine-file>.

    VSCode Extension

    Please use the VSCode run configuration "Run Statemachine Extension" to launch a new VSCode instance including the extension for this language. Use the run configuration "Attach" to attach the debugger.

    Keywords

    none

    Install

    npm i langium-statemachine-dsl

    Homepage

    langium.org

    DownloadsWeekly Downloads

    15

    Version

    1.0.0

    License

    MIT

    Unpacked Size

    105 kB

    Total Files

    62

    Last publish

    Collaborators

    • spoenemann