
Product
Introducing Webhook Events for Alert Changes
Add real-time Socket webhook events to your workflows to automatically receive software supply chain alert changes in real time.
langium-statemachine-dsl
Advanced tools
The State Machine Example features a generator that you can run via cli.
npm install once in the root of the Langium project. That is enough, since we use npm workspaces to manage all of our npm projects as one monorepo.npm run build (again in the root directly) to actually generate the JavaScript code from the TypeScript sources.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>, e.g.cd examples/statemachine
node ./bin/cli generate example/trafficlight.statemachine
produces this result:
C++ code generated successfully: generated/trafficlight.cpp
The generator produces a C++ cli to walk over the statemachine's states.
gcc <full-path-to-generated-cpp-cli> -lstdc++ -o cli to get the executable file cli.o../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.
npm install -g ./ from the statemachine directory.statemachine-cli to run the cli. Follow the instructions or use statemachine-cli generate <full-path-to-statemachine-file>.Please use the VSCode run configuration "Run Statemachine Extension" to launch a new VSCode instance including the extension for this language. Afterwards, use the run configuration "Attach" to attach the debugger to the running language server.
FAQs
Example language built with Langium
We found that langium-statemachine-dsl demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 3 open source maintainers collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Product
Add real-time Socket webhook events to your workflows to automatically receive software supply chain alert changes in real time.

Security News
ENISA has become a CVE Program Root, giving the EU a central authority for coordinating vulnerability reporting, disclosure, and cross-border response.

Product
Socket now scans OpenVSX extensions, giving teams early detection of risky behaviors, hidden capabilities, and supply chain threats in developer tools.