Interface IGrammarValidatorErrorMessageProvider
Hierarchy
-
IGrammarValidatorErrorMessageProvider
Methods
buildAlternationAmbiguityError
- buildAlternationAmbiguityError(options: object): string
-
Parameters
-
options: object
-
-
ambiguityIndices: number[]
-
-
topLevelRule: Rule
Returns string
buildAlternationPrefixAmbiguityError
- buildAlternationPrefixAmbiguityError(options: object): string
-
Parameters
-
options: object
-
-
ambiguityIndices: number[]
-
-
topLevelRule: Rule
Returns string
buildDuplicateFoundError
-
Parameters
Returns string
buildDuplicateNestedRuleNameError
-
Parameters
Returns string
buildDuplicateRuleNameError
- buildDuplicateRuleNameError(options: object): string
-
Parameters
-
options: object
-
grammarName: string
-
topLevelRule: Rule | string
Returns string
buildEmptyAlternationError
- buildEmptyAlternationError(options: object): any
-
Parameters
-
options: object
-
-
emptyChoiceIdx: number
-
topLevelRule: Rule
Returns any
buildEmptyRepetitionError
- buildEmptyRepetitionError(options: object): string
-
Parameters
Returns string
buildInvalidNestedRuleNameError
-
Parameters
Returns string
buildInvalidRuleNameError
- buildInvalidRuleNameError(options: object): string
-
Parameters
-
options: object
-
expectedPattern: RegExp
-
topLevelRule: Rule
Returns string
buildLeftRecursionError
- buildLeftRecursionError(options: object): string
-
Parameters
-
options: object
-
leftRecursionPath: Rule[]
-
topLevelRule: Rule
Returns string
buildNamespaceConflictError
- buildNamespaceConflictError(topLevelRule: Rule): string
-
Parameters
Returns string
buildTokenNameError
- buildTokenNameError(options: object): any
buildTooManyAlternativesError
- buildTooManyAlternativesError(options: object): string
-
Parameters
Returns string
Implementing this interface enables customizing grammar validation errors when using custom APIs.