{"name":"langium","version":"3.2.0","description":"A language engineering tool for the Language Server Protocol","homepage":"https://langium.org","engines":{"node":">=16.0.0"},"keywords":["language","dsl","low-code","lsp","language-server","vscode","typescript"],"license":"MIT","sideEffects":false,"type":"module","exports":{".":{"types":"./lib/index.d.ts","import":"./lib/index.js"},"./generate":{"types":"./lib/generate/index.d.ts","import":"./lib/generate/index.js"},"./test":{"types":"./lib/test/index.d.ts","import":"./lib/test/index.js"},"./node":{"types":"./lib/node/index.d.ts","import":"./lib/node/index.js"},"./grammar":{"types":"./lib/grammar/index.d.ts","import":"./lib/grammar/index.js"},"./lsp":{"types":"./lib/lsp/index.d.ts","import":"./lib/lsp/index.js"}},"scripts":{"clean":"shx rm -rf lib coverage","build":"tsc","watch":"tsc --watch","lint":"eslint src test --ext .ts","validate-exports":"tsc -p test/tsconfig.export-main.json","langium:generate":"langium generate","langium:generate:production":"langium generate --mode=production","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"},"dependencies":{"chevrotain":"~11.0.3","chevrotain-allstar":"~0.3.0","vscode-languageserver":"~9.0.1","vscode-languageserver-textdocument":"~1.0.11","vscode-uri":"~3.0.8"},"devDependencies":{"langium-cli":"~3.2.0"},"volta":{"node":"18.19.1","npm":"10.2.4"},"repository":{"type":"git","url":"git+https://github.com/eclipse-langium/langium.git","directory":"packages/langium"},"bugs":{"url":"https://github.com/eclipse-langium/langium/issues"},"author":{"name":"TypeFox","url":"https://www.typefox.io"},"gitHead":"b2a6fe9684434117eb6a344fc2721e3c26d989bf","_id":"langium@3.2.0","_nodeVersion":"18.20.1","_npmVersion":"9.6.2","dist":{"integrity":"sha512-HxAPgCVC7X+dCN99QKlZMEoaLW4s/mt0IImYrP6ooEBOMh8lJYdFNNSpJ5NIOE+WFwQd3xa2phTJDmJhOWVR7A==","shasum":"d76dbf3354808f2b7b48424deea288d669c99629","tarball":"http://registry-npm.ywwl.com/langium/download/langium-3.2.0.tgz","fileCount":689,"unpackedSize":3502923,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIHQsLpwynEwjQLia4UTn+qCDY/bG9mvpPM2XtO+oLfkTAiEA8UGJu+UP3w+bl7AM1Y6Y0rvmZJtsiRz0mJ8ZIJDCv4w="}],"size":572257,"noattachment":false,"key":"/langium/-/langium-3.2.0.tgz"},"_npmUser":{"name":"msujew","email":"mark.sujew@typefox.io"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/langium_3.2.0_1725643529995_0.5719985325745103"},"_hasShrinkwrap":false,"readme":"# Langium\r\n\r\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).\r\n\r\nMore information: 🌍 https://langium.org\r\n\r\n## Getting Started\r\n\r\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.\r\n\r\n1. Install Yeoman and the Langium extension generator.\r\n```\r\nnpm install -g yo generator-langium\r\n```\r\n\r\n2. Run the generator and answer a few questions.\r\n```\r\nyo langium\r\n```\r\n\r\n3. Open the new folder in VS Code (replace `hello-world` with the extension name you chose).\r\n```\r\ncode hello-world\r\n```\r\n\r\n4. Press **F5** to launch the extension in a new Extension Development Host window.\r\n\r\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:\r\n\r\nFollow the instructions in `langium-quickstart.md` (in your extension folder) and the [documentation on the website](https://langium.org/docs/) to go further.\r\n\r\n## How Does it Work?\r\n\r\nThe core of Langium is a _grammar declaration language_ in which you describe multiple aspects of your language:\r\n\r\n - Tokens (keywords and terminal rules)\r\n - Syntax (parser rules)\r\n - Abstract syntax tree (AST)\r\n\r\nPlease follow the [Langium documentation](https://langium.org/docs/grammar-language/) to learn how to use this language.\r\n\r\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.\r\n\r\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.\r\n\r\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.\r\n\r\n## Examples\r\n\r\nThe source repository of Langium includes [examples](https://github.com/eclipse-langium/langium/tree/main/examples) that demonstrate different use cases.\r\n","publish_time":1725643530187,"maintainers":[{"name":"spoenemann","email":"miro.spoenemann@typefox.io"},{"name":"typefox-team","email":"npm@typefox.io"},{"name":"sailingfox","email":"christian.schneider@typefox.io"},{"name":"msujew","email":"mark.sujew@typefox.io"}],"_cnpm_publish_time":1725643530187,"dist-tags":{"latest":"4.4.2","next":"4.3.0-next.a52b426"}}