{"name":"langium","version":"4.4.1","keywords":["language","dsl","low-code","lsp","language-server","vscode","typescript"],"author":{"url":"https://www.typefox.io","name":"TypeFox"},"license":"MIT","_id":"langium@4.4.1","maintainers":[{"name":"spoenemann","email":"miro.spoenemann@typefox.io"},{"name":"sailingfox","email":"christian.schneider@typefox.io"},{"name":"msujew","email":"mark.sujew@typefox.io"}],"homepage":"https://langium.org","bugs":{"url":"https://github.com/eclipse-langium/langium/issues"},"dist":{"shasum":"18853cd35eafc3d8921d9ce1fd596b3f49d78e44","tarball":"http://registry-npm.ywwl.com/langium/download/langium-4.4.1.tgz","fileCount":705,"integrity":"sha512-V17hWLwlpMLjarOXDgk9sEsQjBBhDvf7kKDJpL3W6+6PlJTsqUbvEVVNsHyUn4CQG0UXVpSU34ujzBE+Cb7l7w==","signatures":[{"sig":"MEQCIGTVqA0oehygQ3KHDGNWDULZiNaQ/kg5zZX7Mthd3lThAiAdYMm9xWP/gi+SrMssYyrRqA9mZDJ6VNycA9oxBwDecQ==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"},{"sig":"MEYCIQC0bJNkDamd7a/TbpejpSgTMK4jkceVToS0WKGgTcpivgIhAIRGZExj8gDlw1TCiilz9d+N1wocfrLUKcT7My+9Gw/J","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/langium@4.4.1","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":3975714,"size":658729,"noattachment":false,"key":"/langium/-/langium-4.4.1.tgz"},"type":"module","engines":{"npm":">=10.2.3","node":"^22.22.2 || ^24.15.0 || >=26"},"exports":{".":{"types":"./lib/index.d.ts","import":"./lib/index.js"},"./lsp":{"types":"./lib/lsp/index.d.ts","import":"./lib/lsp/index.js"},"./node":{"types":"./lib/node/index.d.ts","import":"./lib/node/index.js"},"./test":{"types":"./lib/test/index.d.ts","import":"./lib/test/index.js"},"./grammar":{"types":"./lib/grammar/index.d.ts","import":"./lib/grammar/index.js"},"./generate":{"types":"./lib/generate/index.d.ts","import":"./lib/generate/index.js"}},"gitHead":"49ebea5d85b5edf5cf3826d2742f92dae688303a","scripts":{"docs":"typedoc","build":"tsc","clean":"shx rm -rf lib coverage","watch":"tsc --watch","publish:next":"npm --no-git-tag-version version \"$(semver $npm_package_version -i minor)-next.$(git rev-parse --short HEAD)\" && npm publish --tag next","publish:latest":"npm publish --tag latest --access public","langium:generate":"langium generate","validate-exports":"tsc -p test/tsconfig.export-main.json","langium:generate:production":"langium generate --mode=production"},"_npmUser":{"name":"GitHub Actions","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"5e8036f5-b0b0-444f-86a1-8b0169748ed9"}},"repository":{"url":"git+https://github.com/eclipse-langium/langium.git","type":"git","directory":"packages/langium"},"_npmVersion":"12.2.2","description":"A language engineering tool for the Language Server Protocol","directories":{},"sideEffects":false,"_nodeVersion":"24.22.2","dependencies":{"chevrotain":"~13.2.0","vscode-uri":"~3.1.0","chevrotain-allstar":"~0.5.0","vscode-languageserver":"~11.0.0","@chevrotain/regexp-to-ast":"~13.2.0","vscode-languageserver-types":"~3.18.5","vscode-languageserver-protocol":"~3.18.5","vscode-languageserver-textdocument":"~1.0.16"},"_hasShrinkwrap":false,"devDependencies":{"typedoc":"~0.28.20","langium-cli":"~4.4.0"},"_npmOperationalInternal":{"tmp":"tmp/langium_4.4.1_1794232728249_0.4599994715868836","host":"s3://npm-registry-packages-npm-production"},"readme":"# Langium\n\nLangium is a language engineering tool with built-in support for the [Language Server Protocol](https://microsoft.github.io/language-server-protocol/). It has a simple and direct integration with the [VS Code extension API](https://code.visualstudio.com/api/language-extensions/overview).\n\nMore information: 🌍 https://langium.org\n\n## Getting Started\n\nLangium offers a [Yeoman](https://yeoman.io) generator to create a new language extension for VS Code. The only prerequisite for the following terminal commands is [NodeJS](https://nodejs.org/) version 16 or higher.\n\n1. Install Yeoman and the Langium extension generator.\n```\nnpm install -g yo generator-langium\n```\n\n2. Run the generator and answer a few questions.\n```\nyo langium\n```\n\n3. Open the new folder in VS Code (replace `hello-world` with the extension name you chose).\n```\ncode hello-world\n```\n\n4. Press **F5** to launch the extension in a new Extension Development Host window.\n\n5. Open a folder, create a file with your chosen file name extension (`.hello` is the default), and see that validation and completion (ctrl+space) works:\n\nFollow the instructions in `langium-quickstart.md` (in your extension folder) and the [documentation on the website](https://langium.org/docs/) to go further.\n\n## How Does it Work?\n\nThe core of Langium is a _grammar declaration language_ in which you describe multiple aspects of your language:\n\n - Tokens (keywords and terminal rules)\n - Syntax (parser rules)\n - Abstract syntax tree (AST)\n\nPlease follow the [Langium documentation](https://langium.org/docs/grammar-language/) to learn how to use this language.\n\nLangium features a command line interface ([langium-cli](https://www.npmjs.com/package/langium-cli)) that reads a grammar declaration and generates TypeScript type declarations for the AST and more.\n\nIntegration with the Language Server Protocol (LSP) is done with [vscode-languageserver](https://www.npmjs.com/package/vscode-languageserver). You have full access to the LSP API in Langium, so you can register additional message handlers or extend the protocol in a breeze.\n\nThe main code of Langium consists of a set of services that are connected via dependency injection (DI). You can override the default functionality and add your own service classes by specifying a DI module.\n\n## Examples\n\nThe source repository of Langium includes [examples](https://github.com/eclipse-langium/langium/tree/main/examples) that demonstrate different use cases.\n","publish_time":1794232728497,"_cnpm_publish_time":1794232728497,"dist-tags":{"latest":"4.4.2","next":"4.3.0-next.a52b426"}}