mirror of
https://github.com/JetBrains/intellij-sdk-code-samples.git
synced 2025-07-30 10:17:50 +08:00
grammar_and_parser.md: link implementing_lexer.md as reference
This commit is contained in:
parent
9eb847ed8c
commit
1b09a94218
@ -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`.
|
||||
|
Loading…
x
Reference in New Issue
Block a user