lingua-franca 0.10.1
Lingua Franca code generator
Loading...
Searching...
No Matches
org.lflang.LFSyntaxErrorMessageProvider Class Reference

Custom error message provider that intercepts syntax errors. More...

Inherits SyntaxErrorMessageProvider.

Public Member Functions

SyntaxErrorMessage getSyntaxErrorMessage (IParserErrorContext context)
 Customize intercepted error messages.

Public Attributes

Set< String > keywords
 Set of keywords that otherwise would be valid identifiers.

Static Public Attributes

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.

Package Attributes

IGrammarAccess grammarAccess
 Helper that provides access to the grammar.

Detailed Description

Custom error message provider that intercepts syntax errors.

Author
Marten Lohstroh

Member Function Documentation

◆ getSyntaxErrorMessage()

SyntaxErrorMessage org.lflang.LFSyntaxErrorMessageProvider.getSyntaxErrorMessage ( IParserErrorContext context)

Customize intercepted error messages.

Member Data Documentation

◆ 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