New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

langium-arithmetics-dsl

Package Overview
Dependencies
Maintainers
0
Versions
12
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

langium-arithmetics-dsl

Example language built with Langium

3.4.0
latest
Source
npm
Version published
Weekly downloads
2
-66.67%
Maintainers
0
Weekly downloads
 
Created
Source

Arithmetics Example

Interpreter CLI

The Arithmetics Example features an interpreter 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 arithmetics directory to run the cli. Follow the instructions or use node ./bin/cli eval <full-path-to-calc-file>.

The interpreter calculates each Evaluation in the source file and prints the result.

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

  • Run npm install -g ./ from the arithmetics directory.
  • Use arithmetics-cli or arithmetics-cli eval <full-path-to-calc-file>.

VSCode Extension

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

FAQs

Package last updated on 26 Feb 2025

Did you know?

Socket

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.

Install

Related posts