grammar_and_parser.md: link implementing_lexer.md as reference

This commit is contained in:
Yann Cébron 2021-12-07 14:40:25 +01:00
parent 9eb847ed8c
commit 1b09a94218

View File

@ -7,7 +7,9 @@
In order for the IntelliJ Platform to parse a Simple Language file, tokens and elements must be defined based on [`IElementType`](upsource:///platform/core-api/src/com/intellij/psi/tree/IElementType.java).
The Simple Language grammar must also be defined to generate a parser.
**Reference**: [](implementing_parser_and_psi.md)
**Reference**:
- [](implementing_lexer.md)
- [](implementing_parser_and_psi.md)
## Define a Token Type
Create `SimpleTokenType` in the `org.intellij.sdk.language.psi` package (see the `simple_language_plugin` code sample) by subclassing `IElementType`.