@snakeskin/language
v0.0.5
Published
The language specific package
Downloads
44
Readme
The mandatory language package
As a good entry point to our documentation, please use to this guide.
What's in the folder?
- package.json - The manifest file of your language package.
- tsconfig.json - The packages specific TypeScript compiler configuration extending the base config
- src/snakeskin.langium - The grammar definition of your language
- src/snakeskin-module.ts - The dependency injection module of your language implementation. Use this to register overridden and added services.
- src/snakeskin-validator.ts - An example validator. You should change it to reflect the semantics of your language.
- src/generated/ast.ts - AST generated by
langium generate
. - src/generated/grammar.ts - Grammar generated by
langium generate
. - src/generated/module.ts - Module generated by
langium generate
. - src/syntaxes/snakeskin.monarch.ts - Monarch based syntax highlighting instructions.
- syntaxes/snakeskin.tmLanguage.json - Textmate based syntax highlighting instructions.
- src/index.ts Defines what is exported to other packages.
If you selected the test option as well, then the following files will be present in addition:
- tsconfig.test.json - The package specific TypeScript compiler configuration for the unit tests extending the tsconfig.src.config
- test/linking.test.ts - Unit tests checking linking.
- test/parsing.test.ts - Unit tests regarding parsing.
- test/validating.test.ts - Unit tests regarding validation.