UNPKG

antlr-ng

Version:

Next generation ANTLR Tool

133 lines (132 loc) 4.18 kB
export declare const enum IssueSeverity { Info = 0, Warning = 1, WarningOneOff = 2, Error = 3, ErrorOneOff = 4, Fatal = 5 } export declare const severityMap: Map<IssueSeverity, string>; export declare enum IssueCode { NoGrammarsFound = 0, CannotWriteFile = 1, InvalidCmdlineArg = 2, CannotFindTokensFile = 3, ErrorReadingTokensFile = 4, DirNotFound = 5, OutputDirIsFIle = 6, CannotOpenFile = 7, FileAndGrammarNameDiffer = 8, BadOptionSetSyntax = 9, WarningTreatedAsErrors = 10, ErrorReadingImportedGrammar = 11, InternalError = 12, TokensFileSyntaxError = 13, StringTemplateWarning = 14, MissingCodeGenTemplates = 15, CannotCreateTargetGenerator = 16, CodeTemaplateArgIssue = 17, CodeGenTemplatesIncomplete = 18, NoModleToTemplateMapping = 19, IncompatibleToolAndTemplates = 20, SyntaxError = 21, RuleRedefinition = 22, LexerRulesNotAllowed = 23, ParserRuleNotAllowed = 24, RepeatedPrequel = 25, UndefinedRuleRef = 26, UndefinedRuleInNonlocalRef = 27, TokenNamesMustStartUpper = 28, UnknownSimpleAttribute = 29, InvalidRuleParameterRef = 30, UnknownRuleAttribute = 31, UnknownAtrributeInScopoe = 32, IsloatedRuleRef = 33, LabelConflictsWithRule = 34, LabelConflictsWithToken = 35, LabelConflictsWithArg = 36, LabelConflictsWithRetval = 37, LabelConflictsWithLocal = 38, LabelTypeConflict = 39, RetValuConflictsWithArg = 40, MissingRuleArgs = 41, RuleHasNoArgs = 42, IllegalOption = 43, IllegalOptionValue = 44, ActionRedefinition = 45, NoRules = 46, NoSuchGrammarScope = 47, NoSuchRuleInScope = 48, TokenNameReassignment = 49, OptionsInDelegate = 50, CannotFindImportedGrammar = 51, InvalidImport = 52, ImportNameClash = 53, CannotFindTokensFileRefdInGrammar = 54, LeftRecursionCycles = 55, ModeNotInLexer = 56, CannotFindAttributeNameInDecl = 57, RuleWithTooFewAltLabels = 58, AltLabelRedef = 59, AltLabelConflictsWithRule = 60, ImplicitTokenDefinition = 61, ImplicitStringDefinition = 62, AttributeInLexerAction = 63, LabelBlockNotASet = 64, ExpectedNonGreedyWildcardBlock = 65, LexerCommandPlacementIssue = 66, UnsupportedReferenceInLexerSet = 67, AssignmentToListLabel = 68, RetvalConflkictsWithRule = 69, RetvalConflictsWithToken = 70, ArgConflictsWithRule = 71, ArgConflictsWithToken = 72, LocalConflictsWithRule = 73, LocalConflictsWithToken = 74, LocalConflictsWithArg = 75, LocalConflictsWithRetval = 76, InvalidLiteralInLexerSet = 77, ModeWithoutRules = 78, EpsilonToken = 79, NoNonLrAlts = 80, EpsilonLrFollow = 81, InvalidLexerCommand = 82, MisingLexerCommandArgument = 83, UnwantedLexerCommandArgument = 84, UnterminatedStringLiteral = 85, EpsilonClosure = 86, EpsilonOptional = 87, UnknownLexerConstant = 88, InvalidEscapeSequence = 89, UnrecognizedAsscoOption = 90, FragmentActionIgnored = 91, ReservedRuleName = 92, ParserRuleRefInLexerRule = 93, ChannelConflictsWithToken = 94, ChannelConflictsWithMode = 95, ChannelsBlockInParserGrammar = 96, ChannelsBlockInCombinedGrammar = 97, NonconformingLrRule = 98, ModeConflictsWithToken = 99, TokenConflictsWithCommonConstants = 100, ChannelConflictsWithCommonConstants = 101, ModeConflictsWithCommonConstants = 102, EmptyStringAndSetsNotAllowed = 103, ConstantValueIsNotARecognizedTokenName = 104, ConstantValueIsNotARecognizedModeName = 105, ConstantValueIsNotARecognizedChannelName = 106, DuplicatedCommand = 107, IncompatibleCommands = 108, CharactersCollisionInSet = 109, TplemjRangeInParser = 110, UnicodePropertyNotAllowedInRange = 111, TokenUnreachable = 112, RangeProbablyContainsNotImpliedCharacter = 113, EofClosure = 114, RedundantCaseInsensitiveLexerRuleOption = 115 } export interface IssueDetails { message: string; severity: IssueSeverity; } export declare const issueTypes: Map<IssueCode, IssueDetails>;