← 全部工具

langium-cli

热度 65 更新于 开发与构建

CLI for Langium - the language engineering tool

npmauto-collected

安装

npm
npm install -g langium-cli

通过 npm 安装。

<div id="langium-logo" align="center" <a href="https://github.com/eclipse-langium/langium" <img alt="Langium Logo" width="60%" src="https://user-images.githubusercontent.com/4377073/135283991-90ef7724-649d-440a-8720-df13c23bda82.png" </a <h3 Next-gen language engineering framework </h3 </div

<div id="badges" align="center"

</div

---

Eclipse Langium (IPA: /ˈlæŋɡiəm/, like language and equilibrium) is a language engineering tool for TypeScript with built-in support for the Language Server Protocol. The framework is an all-in-one solution for building programming languages, domain specific languages, code generators, interpreters and compilers. It serves as a spiritual successor to the Eclipse Xtext framework.

  • Semantics First: Building on top of a grammar declaration language, Langium enables you to build the abstract model of your language in parallel to its syntax. Langium parsers are powered by Chevrotain.
  • Lean by Default, Customizable by Design: Langium offers the infrastructure you need to build languages purely by defining their grammar. If that is not enough, you can fine tune every detail of your language using our dependency injection system.
  • Write Once, Run Everywhere: By leveraging the flexibility of JavaScript and the Language Server Protocol, a language written using Langium can run in all kinds of IDEs and browsers or be embedded in CLIs and server applications.

Installation

Build your first language with Langium in our online playground.

Once you're ready to set up a project, you can use yeoman to generate a sample Langium project:

npm i -g yo generator-langium
yo langium

Documentation

You can find the Langium documentation on the website.

If you're new to building programming languages, take a look at our overview to see what Langium offers.

The documentation is divided into several sections:

  • Learning Langium
  • Referece
  • Recipes
  • Playground

The documentation website is hosted in this repository.

Examples

We host a number of simple examples in our main repo: