{"name":"langium","version":"1.0.0","keywords":["language","dsl","low-code","lsp","language-server","vscode","typescript"],"author":{"url":"https://www.typefox.io","name":"TypeFox"},"license":"MIT","_id":"langium@1.0.0","homepage":"https://langium.org","bugs":{"url":"https://github.com/langium/langium/issues"},"dist":{"shasum":"d040e7b3caa4b723a3f904e4251b84ce622ecd96","tarball":"http://registry-npm.ywwl.com/langium/download/langium-1.0.0.tgz","fileCount":498,"integrity":"sha512-jXVpWsk0zPUQ8fwHIhSbi7tD1rB3PwV2xvCYn+LiZoIXgAEQjLAjFGwvSCRVA+ulnEm1syBE6EAepY11f082Pg==","signatures":[{"sig":"MEUCIQDWaa7hNw+JRfEoGeE4KZyxJylvsT4VI9wmde//gogIsAIgWs8BzcskFz/k9ji12rsDDYUQ2bMSKOlRCCyJfUaG1fI=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":2325600,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjnDYkACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmqnYw/+L4ugT69UZlVYa4XAlKUoWMdo5ogO/Ss4Q9VFrV6RBwBFJMwH\r\n3x8pIP7LyLt1rD4S5D4dIGJErydLCSvFnWa1+Po+aHaHmur3/+zWNjNJwWVo\r\nh0ia8l9XtYZv+4uW9xyFR1zscp32exWMSoPsdvrBKFY1OvaqFfCBEqHkD+vB\r\n5AJHZCnjSYFXdD/MpCkHSwCv3DCzg0qDSxYhc40pb3BZxneIchPCYo+IhaVj\r\nWHrnDrPhyCRWpG4zd/kPdoBiI5OMceN1TEDBtk86zextRSY5e0eQ7QyAwN6q\r\nEnjlJr9v6Ac9i79tUPIRYGPq7Z+wfLVN10iwfT5gJ0PTGrA5NZhDwA3ZLDrN\r\nstvlcI7ltaBjrxFZebh5KgtRz5umkByrjED21eMnVprUq/f9ozGPxmSjXvmz\r\nRcL1jeGvhhkpRhboV2qKK/jyP8x+CsBwuaomNP8eWgVC3mgv10+Z368Mk9tq\r\n4ZS6+J9jcKQfTzjdGatfn5W8fkqYWUwS3hWg/oJkudtqljsXNmyS7H7DJWl2\r\n7SkzM0BQj2yTSIHsxaHTDUzSVXwRS+ke7Tgo2JHO43XCG6wtg5WZsD/fdk02\r\noYtXB/2HnhxPi1SoZEVvWPCF+/Ia/0PYxBg07v+IkfMcYiuarNtb0+3P0dkt\r\ndlMcDgc7JW2fPrtJRU4bK/Cv1AhMNBQ4I9E=\r\n=E/mN\r\n-----END PGP SIGNATURE-----\r\n","size":387876,"noattachment":false,"key":"/langium/-/langium-1.0.0.tgz"},"main":"lib/index.js","types":"lib/index.d.ts","engines":{"node":">=14.0.0"},"gitHead":"3803880cbd66ecb3e4d863bb3f37e227902ead81","scripts":{"lint":"eslint src test --ext .ts","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","langium:generate":"langium generate"},"_npmUser":{"name":"spoenemann","email":"miro.spoenemann@typefox.io"},"repository":{"url":"git+https://github.com/langium/langium.git","type":"git","directory":"packages/langium"},"_npmVersion":"8.3.1","description":"A language engineering tool for the Language Server Protocol","directories":{},"_nodeVersion":"16.13.0","dependencies":{"chevrotain":"^10.4.1","vscode-uri":"^3.0.2","chevrotain-allstar":"^0.1.1","vscode-languageserver":"^8.0.2","vscode-languageserver-textdocument":"^1.0.7"},"_hasShrinkwrap":false,"devDependencies":{"langium-cli":"1.0.0"},"_npmOperationalInternal":{"tmp":"tmp/langium_1.0.0_1671181860348_0.251556735888262","host":"s3://npm-registry-packages"},"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":1671181860605,"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":1671181860605,"dist-tags":{"latest":"4.4.2","next":"4.3.0-next.a52b426"}}