Custom error message provider that intercepts syntax errors.
More...
Inherits SyntaxErrorMessageProvider.
|
| SyntaxErrorMessage | getSyntaxErrorMessage (IParserErrorContext context) |
| | Customize intercepted error messages.
|
|
| Set< String > | keywords |
| | Set of keywords that otherwise would be valid identifiers.
|
|
| static String | SINGLY_QUOTED_STRING = "SINGLE_QUOTED_STRING" |
| | Issue code for syntax error due to misused single quotes.
|
| static String | USED_RESERVED_KEYWORD = "USED_RESERVED_KEYWORD" |
| | Issue code for syntax error due to misused keyword.
|
|
| IGrammarAccess | grammarAccess |
| | Helper that provides access to the grammar.
|
Custom error message provider that intercepts syntax errors.
- Author
- Marten Lohstroh
◆ getSyntaxErrorMessage()
| SyntaxErrorMessage org.lflang.LFSyntaxErrorMessageProvider.getSyntaxErrorMessage |
( |
IParserErrorContext | context | ) |
|
Customize intercepted error messages.
◆ grammarAccess
| IGrammarAccess org.lflang.LFSyntaxErrorMessageProvider.grammarAccess |
|
package |
Helper that provides access to the grammar.
◆ keywords
| Set<String> org.lflang.LFSyntaxErrorMessageProvider.keywords |
Set of keywords that otherwise would be valid identifiers.
For example, 'reaction' is part of this set, but '{=' is not.
◆ SINGLY_QUOTED_STRING
| String org.lflang.LFSyntaxErrorMessageProvider.SINGLY_QUOTED_STRING = "SINGLE_QUOTED_STRING" |
|
static |
Issue code for syntax error due to misused single quotes.
◆ USED_RESERVED_KEYWORD
| String org.lflang.LFSyntaxErrorMessageProvider.USED_RESERVED_KEYWORD = "USED_RESERVED_KEYWORD" |
|
static |
Issue code for syntax error due to misused keyword.
The documentation for this class was generated from the following file:
- /Users/runner/work/lingua-franca/lingua-franca/core/src/main/java/org/lflang/LFSyntaxErrorMessageProvider.java