Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface IGrammarValidatorErrorMessageProvider

Implementing this interface enables customizing grammar validation errors when using custom APIs.

Hierarchy

  • IGrammarValidatorErrorMessageProvider

Index

Methods

buildAlternationAmbiguityError

  • buildAlternationAmbiguityError(options: object): string

buildAlternationPrefixAmbiguityError

  • buildAlternationPrefixAmbiguityError(options: object): string

buildDuplicateFoundError

buildDuplicateNestedRuleNameError

buildDuplicateRuleNameError

  • buildDuplicateRuleNameError(options: object): string
  • Parameters

    • options: object
      • grammarName: string
      • topLevelRule: Rule | string

    Returns string

buildEmptyAlternationError

  • buildEmptyAlternationError(options: object): any

buildEmptyRepetitionError

  • buildEmptyRepetitionError(options: object): string

buildInvalidNestedRuleNameError

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

buildTokenNameError

  • buildTokenNameError(options: object): any
  • Parameters

    • options: object
      • expectedPattern: RegExp
      • tokenType: TokenType

    Returns any

buildTooManyAlternativesError

  • buildTooManyAlternativesError(options: object): string

Generated using TypeDoc