TopicsLangium: A language engineering tool Langium: A language engineering tool

Langium

Langium is a framework for building language tools, such as editors, linters, and compilers, using TypeScript or JavaScript. It’s particularly useful for creating domain-specific languages (DSLs) or extending existing languages. Langium leverages the Language Server Protocol (LSP) to provide features like syntax highlighting, code completion, and error checking in modern code editors like VS Code.

Course Getting started with ‘Langium’

TypeScript and Node.js

For the usage of TypeScript with node.js See

Other References

Langium Simple Example: Creating a Basic DSL

See Langium Simple Example: Creating a Basic DSL

Chevrotain

The Langium parser is created using Chevrotain which is LL(k) and has a built-in lexer based on Javascript Regular Expressions. Langium also allows the use of Extended Backus-Naur Form (EBNF) Expressions for terminals, but we highly recommend that you write your terminals using Regular Expressions instead.