Home
last modified time | relevance | path

Searched refs:ErrorManager (Results 1 – 25 of 57) sorted by relevance

123

/external/antlr/antlr-3.4/tool/src/main/java/org/antlr/tool/
DGrammarSerializerFoo.java89 ErrorManager.error(ErrorManager.MSG_CANNOT_WRITE_FILE, filename); in grammar()
99 ErrorManager.error(ErrorManager.MSG_CANNOT_WRITE_FILE, filename); in rule()
108 ErrorManager.error(ErrorManager.MSG_CANNOT_WRITE_FILE, filename); in endRule()
118 ErrorManager.error(ErrorManager.MSG_CANNOT_WRITE_FILE, filename); in block()
128 ErrorManager.error(ErrorManager.MSG_CANNOT_WRITE_FILE, filename); in alt()
144 ErrorManager.error(ErrorManager.MSG_CANNOT_WRITE_FILE, filename); in endAlt()
155 ErrorManager.error(ErrorManager.MSG_CANNOT_WRITE_FILE, filename); in ruleRef()
167 ErrorManager.error(ErrorManager.MSG_CANNOT_WRITE_FILE, filename); in token()
182 ErrorManager.error(ErrorManager.MSG_CANNOT_WRITE_FILE, filename); in charLiteral()
192 ErrorManager.error(ErrorManager.MSG_CANNOT_WRITE_FILE, filename); in wildcard()
[all …]
DNameSpaceChecker.java85 ErrorManager.grammarError( in checkForRuleArgumentAndReturnValueConflicts()
86 ErrorManager.MSG_ARG_RETVAL_CONFLICT, in checkForRuleArgumentAndReturnValueConflicts()
103 msgID = ErrorManager.MSG_LEXER_RULES_NOT_ALLOWED; in checkForRuleDefinitionProblems()
109 msgID = ErrorManager.MSG_PARSER_RULES_NOT_ALLOWED; in checkForRuleDefinitionProblems()
112 msgID = ErrorManager.MSG_SYMBOL_CONFLICTS_WITH_GLOBAL_SCOPE; in checkForRuleDefinitionProblems()
115 ErrorManager.grammarError(msgID, grammar, ruleToken, ruleName); in checkForRuleDefinitionProblems()
139 ErrorManager.grammarError(ErrorManager.MSG_UNDEFINED_RULE_REF, in lookForReferencesToUndefinedSymbols()
154 ErrorManager.grammarWarning(ErrorManager.MSG_NO_TOKEN_DEFINITION, in lookForReferencesToUndefinedSymbols()
168 ErrorManager.grammarError(ErrorManager.MSG_NO_SUCH_GRAMMAR_SCOPE, in lookForReferencesToUndefinedSymbols()
177 ErrorManager.grammarError(ErrorManager.MSG_NO_SUCH_RULE_IN_SCOPE, in lookForReferencesToUndefinedSymbols()
[all …]
DGrammarSanity.java74 ErrorManager.leftRecursionCycles(listOfRecursiveCycles); in checkAllRulesForLeftRecursion()
199 ErrorManager.grammarError( in checkRuleReference()
200 ErrorManager.MSG_RULE_HAS_NO_ARGS, in checkRuleReference()
210 ErrorManager.grammarError( in checkRuleReference()
211 ErrorManager.MSG_MISSING_RULE_ARGS, in checkRuleReference()
222 ErrorManager.grammarError( in checkRuleReference()
223 ErrorManager.MSG_ARGS_ON_TOKEN_REF, in checkRuleReference()
234 ErrorManager.grammarError( in checkRuleReference()
235 ErrorManager.MSG_RULE_HAS_NO_ARGS, in checkRuleReference()
245 ErrorManager.grammarError( in checkRuleReference()
[all …]
DGrammar.java587 ErrorManager.error(ErrorManager.MSG_FILENAME_EXTENSION_ERROR, fileName); in setName()
594 ErrorManager.error(ErrorManager.MSG_FILE_AND_GRAMMAR_NAME_DIFFER, in setName()
634 ErrorManager.internalError("unexpected stream error from parsing "+fileName, e); in parseAndBuildAST()
647 ErrorManager.internalError("unexpected parser recognition error from "+fileName, re); in parseAndBuildAST()
655 ErrorManager.grammarWarning(ErrorManager.MSG_REWRITE_OR_OP_WITH_NO_OUTPUT_OPTION, in parseAndBuildAST()
660 ErrorManager.grammarError(ErrorManager.MSG_AST_OP_WITH_NON_AST_OUTPUT_OPTION, in parseAndBuildAST()
673 ErrorManager.error(ErrorManager.MSG_NO_RULES, getFileName()); in parseAndBuildAST()
690 ErrorManager.error(ErrorManager.MSG_CONFLICTING_OPTION_IN_TREE_FILTER, in dealWithTreeFilterMode()
694 ErrorManager.error(ErrorManager.MSG_CONFLICTING_OPTION_IN_TREE_FILTER, in dealWithTreeFilterMode()
699 ErrorManager.error(ErrorManager.MSG_CONFLICTING_OPTION_IN_TREE_FILTER, in dealWithTreeFilterMode()
[all …]
DMessage.java81 msgST = ErrorManager.getMessage(msgID); in setMessageID()
96 locationST = ErrorManager.getLocationFormat(); in toString()
97 reportST = ErrorManager.getReportFormat(); in toString()
98 messageFormatST = ErrorManager.getMessageFormat(); in toString()
120 reportST.add("type", ErrorManager.getMessageType(msgID)); in toString()
DAssignTokenTypesBehavior.java71 ErrorManager.grammarError(ErrorManager.MSG_CANNOT_ALIAS_TOKENS_IN_LEXER, in trackString()
84 ErrorManager.grammarError(ErrorManager.MSG_LITERAL_NOT_ASSOCIATED_WITH_LEXER_RULE, in trackString()
178 ErrorManager.grammarError(ErrorManager.MSG_TOKEN_ALIAS_CONFLICT, in alias()
194 ErrorManager.grammarError(ErrorManager.MSG_TOKEN_ALIAS_REASSIGNMENT, in alias()
DErrorManager.java91 public class ErrorManager { class
367 ErrorManager.error(ErrorManager.MSG_INTERNAL_ERROR, msg.toString(), msg.cause);
371 ErrorManager.error(ErrorManager.MSG_INTERNAL_ERROR, msg.toString(), msg.cause);
375 ErrorManager.error(ErrorManager.MSG_INTERNAL_ERROR, msg.toString(), msg.cause);
379 ErrorManager.error(ErrorManager.MSG_INTERNAL_ERROR, msg.toString(), msg.cause);
407 ErrorManager.locale = locale; in setLocale()
438 ErrorManager.formatName = formatName; in setFormat()
825 Field[] fields = ErrorManager.class.getFields(); in initIdToMessageNameMapping()
837 msgID = f.getInt(ErrorManager.class); in initIdToMessageNameMapping()
855 Field[] fields = ErrorManager.class.getFields(); in verifyMessages()
DAttributeScope.java127 ErrorManager.grammarError(ErrorManager.MSG_ARG_INIT_VALUES_ILLEGAL, in addAttributes()
149 ErrorManager.grammarError(ErrorManager.MSG_ACTION_REDEFINITION, in defineNamedAction()
DLeftRecursiveRuleAnalyzer.java48 ErrorManager.error(ErrorManager.MSG_MISSING_CODE_GEN_TEMPLATES, in loadPrecRuleTemplates()
72 ErrorManager.error(ErrorManager.MSG_ILLEGAL_OPTION_VALUE, "assoc", assoc); in setTokenPrec()
78 ErrorManager.error(ErrorManager.MSG_ALL_OPS_NEED_SAME_ASSOC, alt); in setTokenPrec()
305 ErrorManager.error(ErrorManager.MSG_BAD_AST_STRUCTURE, e); in text()
/external/antlr/antlr-3.4/tool/src/test/java/org/antlr/test/
DTestSymbolDefinitions.java217 ErrorManager.setErrorListener(equeue); in testRefToRuleWithNoReturnValue()
240 ErrorManager.setErrorListener(equeue); in testParserStringLiterals()
246 int expectedMsgID = ErrorManager.MSG_LITERAL_NOT_ASSOCIATED_WITH_LEXER_RULE; in testParserStringLiterals()
254 ErrorManager.setErrorListener(equeue); in testParserCharLiterals()
260 int expectedMsgID = ErrorManager.MSG_LITERAL_NOT_ASSOCIATED_WITH_LEXER_RULE; in testParserCharLiterals()
268 ErrorManager.setErrorListener(equeue); in testEmptyNotChar()
274 int expectedMsgID = ErrorManager.MSG_EMPTY_COMPLEMENT; in testEmptyNotChar()
282 ErrorManager.setErrorListener(equeue); in testEmptyNotToken()
288 int expectedMsgID = ErrorManager.MSG_EMPTY_COMPLEMENT; in testEmptyNotToken()
296 ErrorManager.setErrorListener(equeue); in testEmptyNotSet()
[all …]
DTestAttributes.java97 ErrorManager.setErrorListener(equeue); in testArguments()
120 ErrorManager.setErrorListener(equeue); in testComplicatedArgParsing()
142 ErrorManager.setErrorListener(equeue); in testBracketArgParsing()
173 ErrorManager.setErrorListener(equeue); in testStringArgParsing()
209 ErrorManager.setErrorListener(equeue); in testComplicatedSingleArgParsing()
234 ErrorManager.setErrorListener(equeue); in testArgWithLT()
260 ErrorManager.setErrorListener(equeue); in testGenericsAsArgumentDefinition()
289 ErrorManager.setErrorListener(equeue); in testGenericsAsArgumentDefinition2()
324 ErrorManager.setErrorListener(equeue); in testGenericsAsReturnValue()
344 ErrorManager.setErrorListener(equeue); in testComplicatedArgParsingWithTranslation()
[all …]
DTestTemplates.java37 import org.antlr.tool.ErrorManager;
54 ErrorManager.setErrorListener(equeue); in testTemplateConstructor()
91 ErrorManager.setErrorListener(equeue); in testTemplateConstructorNoArgs()
129 ErrorManager.setErrorListener(equeue); in testIndirectTemplateConstructor()
165 ErrorManager.setErrorListener(equeue); in testStringConstructor()
200 ErrorManager.setErrorListener(equeue); in testSetAttr()
236 ErrorManager.setErrorListener(equeue); in testSetAttrOfExpr()
268 ErrorManager.setErrorListener(equeue); in testSetAttrOfExprInMembers()
294 ErrorManager.setErrorListener(equeue); in testCannotHaveSpaceBeforeDot()
310 int expectedMsgID = ErrorManager.MSG_INVALID_TEMPLATE_ACTION; in testCannotHaveSpaceBeforeDot()
[all …]
DTestCompositeGrammars.java41 ErrorManager.setErrorListener(equeue); in testWildcardStillWorks()
187 ErrorManager.setErrorListener(equeue); in testDelegatesSeeSameTokenType2()
233 ErrorManager.setErrorListener(equeue); in testCombinedImportsCombined()
262 ErrorManager.setErrorListener(equeue); in testSameStringTwoNames()
301 int expectedMsgID = ErrorManager.MSG_TOKEN_ALIAS_CONFLICT; in testSameStringTwoNames()
315 ErrorManager.setErrorListener(equeue); in testSameNameTwoStrings()
354 int expectedMsgID = ErrorManager.MSG_TOKEN_ALIAS_REASSIGNMENT; in testSameNameTwoStrings()
368 ErrorManager.setErrorListener(equeue); in testImportedTokenVocabIgnoredWithWarning()
391 int expectedMsgID = ErrorManager.MSG_TOKEN_VOCAB_IN_DELEGATE; in testImportedTokenVocabIgnoredWithWarning()
406 ErrorManager.setErrorListener(equeue); in testImportedTokenVocabWorksInRoot()
[all …]
DTestRewriteAST.java32 import org.antlr.tool.ErrorManager;
863 ErrorManager.setErrorListener(equeue); in testWeirdRuleRef()
1160 ErrorManager.setErrorListener(equeue); in testUnknownRule()
1177 int expectedMsgID = ErrorManager.MSG_UNDEFINED_RULE_REF; in testUnknownRule()
1188 ErrorManager.setErrorListener(equeue); in testKnownRuleButNotInLHS()
1206 int expectedMsgID = ErrorManager.MSG_REWRITE_ELEMENT_NOT_PRESENT_ON_LHS; in testKnownRuleButNotInLHS()
1217 ErrorManager.setErrorListener(equeue); in testUnknownToken()
1234 int expectedMsgID = ErrorManager.MSG_UNDEFINED_TOKEN_REF_IN_REWRITE; in testUnknownToken()
1245 ErrorManager.setErrorListener(equeue); in testUnknownLabel()
1262 int expectedMsgID = ErrorManager.MSG_UNDEFINED_LABEL_REF_IN_REWRITE; in testUnknownLabel()
[all …]
DTestMessages.java35 import org.antlr.tool.ErrorManager;
50 ErrorManager.setErrorListener(equeue); in testMessageStringificationIsConsistent()
69 int expectedMsgID = ErrorManager.MSG_WRITE_TO_READONLY_ATTR; in testMessageStringificationIsConsistent()
DTestSemanticPredicates.java254 ErrorManager.setErrorListener(equeue); in testLeftRecursivePred()
363 ErrorManager.setErrorListener(equeue); in testPredsUsedAfterRecursionOverflow()
397 ErrorManager.setErrorListener(equeue); in testPredsUsedAfterK2FailsNoRecursionOverflow()
561 ErrorManager.setErrorListener(equeue); in testIncompleteSemanticHoistedContext()
574 ErrorManager.setErrorListener(equeue); in testIncompleteSemanticHoistedContextk2()
588 ErrorManager.setErrorListener(equeue); in testIncompleteSemanticHoistedContextInFOLLOW()
602 ErrorManager.setErrorListener(equeue); in testIncompleteSemanticHoistedContextInFOLLOWk2()
617 ErrorManager.setErrorListener(equeue); in testIncompleteSemanticHoistedContextInFOLLOWDueToHiddenPred()
642 ErrorManager.setErrorListener(equeue); in testIncompleteSemanticHoistedContext2()
799 ErrorManager.setErrorListener(equeue); in checkDecision()
DTestRewriteTemplates.java238 ErrorManager.setErrorListener(equeue); in testRewriteRuleAndRewriteModeOnSimpleElements()
259 ErrorManager.setErrorListener(equeue); in testRewriteRuleAndRewriteModeIgnoreActionsPredicates()
281 ErrorManager.setErrorListener(equeue); in testRewriteRuleAndRewriteModeNotSimple()
300 ErrorManager.setErrorListener(equeue); in testRewriteRuleAndRewriteModeRefRule()
/external/apache-harmony/logging/src/test/java/org/apache/harmony/logging/tests/java/util/logging/
DErrorManagerTest.java22 import java.util.logging.ErrorManager;
47 ErrorManager em = new ErrorManager(); in test_errorStringStringint()
48 em.error(null, new NullPointerException(), ErrorManager.GENERIC_FAILURE); in test_errorStringStringint()
49 em.error("An error message.", null, ErrorManager.GENERIC_FAILURE); in test_errorStringStringint()
50 em.error(null, null, ErrorManager.GENERIC_FAILURE); in test_errorStringStringint()
54 assertEquals(3, ErrorManager.CLOSE_FAILURE); in test_constants()
55 assertEquals(2, ErrorManager.FLUSH_FAILURE); in test_constants()
56 assertEquals(5, ErrorManager.FORMAT_FAILURE); in test_constants()
57 assertEquals(0, ErrorManager.GENERIC_FAILURE); in test_constants()
58 assertEquals(4, ErrorManager.OPEN_FAILURE); in test_constants()
[all …]
DHandlerTest.java25 import java.util.logging.ErrorManager;
78 assertTrue(h.getErrorManager() instanceof ErrorManager); in testConstructor()
105 assertTrue(h.getErrorManager() instanceof ErrorManager); in testConstructor_Properties()
169 ErrorManager man = new ErrorManager(); in testGetSetErrorManager_Normal()
188 h.setErrorManager(new ErrorManager()); in testGetSetErrorManager_Null()
365 public static class MockErrorManager extends ErrorManager {
/external/antlr/antlr-3.4/tool/src/main/java/org/antlr/codegen/
DCodeGenerator.java171 ErrorManager.error(ErrorManager.MSG_CANNOT_CREATE_TARGET_GENERATOR, in loadLanguageTarget()
176 ErrorManager.error(ErrorManager.MSG_CANNOT_CREATE_TARGET_GENERATOR, in loadLanguageTarget()
190 ErrorManager.error(ErrorManager.MSG_MISSING_CODE_GEN_TEMPLATES, in loadTemplates()
289 if ( ErrorManager.doNotAttemptAnalysis() ) { in genRecognizer()
296 if ( ErrorManager.doNotAttemptCodeGen() ) { in genRecognizer()
428 ErrorManager.error(ErrorManager.MSG_BAD_AST_STRUCTURE, in genRecognizer()
475 ErrorManager.error(ErrorManager.MSG_CANNOT_WRITE_FILE, ioe); in genRecognizer()
498 ErrorManager.grammarError( in verifyActionScopesOkForTarget()
499 ErrorManager.MSG_INVALID_ACTION_SCOPE,grammar, in verifyActionScopesOkForTarget()
574 ErrorManager.internalError("no follow state or cannot compute follow"); in generateLocalFOLLOW()
[all …]
/external/antlr/antlr-3.4/tool/src/main/java/org/antlr/
DTool.java95 if (ErrorManager.getNumErrors() > 0) { in main()
142 ErrorManager.info("ANTLR Parser Generator Version " + VERSION); in processArgs()
169 ErrorManager.error(ErrorManager.MSG_OUTPUT_DIR_IS_FILE, outputDirectory); in processArgs()
187 ErrorManager.error(ErrorManager.MSG_DIR_NOT_FOUND, getLibraryDirectory()); in processArgs()
241 ErrorManager.setFormat(args[i]); in processArgs()
415 ErrorManager.info("ANTLR Parser Generator Version " + VERSION); in process()
423 ErrorManager.error(ErrorManager.MSG_INTERNAL_ERROR,e); in process()
426 ErrorManager.error(ErrorManager.MSG_INTERNAL_ERROR, e); in process()
438 ErrorManager.error(ErrorManager.MSG_INTERNAL_ERROR,e); in process()
538 ErrorManager.error(ErrorManager.MSG_CANNOT_WRITE_FILE, e); in process()
[all …]
/external/antlr/antlr-3.4/tool/src/main/antlr3/org/antlr/grammar/v3/
DActionTranslator.g137 ErrorManager.grammarError(ErrorManager.MSG_NONUNIQUE_REF,
200 ErrorManager.grammarError(ErrorManager.MSG_WRITE_TO_READONLY_ATTR,
209 ErrorManager.grammarError(ErrorManager.MSG_WRITE_TO_READONLY_ATTR,
235 ErrorManager.grammarError(ErrorManager.MSG_RULE_REF_AMBIG_WITH_RULE_IN_ALT,
250 ErrorManager.grammarError(ErrorManager.MSG_RULE_HAS_NO_ARGS,
276 ErrorManager.grammarError(ErrorManager.MSG_WRITE_TO_READONLY_ATTR,
303 ErrorManager.grammarError(ErrorManager.MSG_FORWARD_ELEMENT_REF,
341 ErrorManager.grammarError(ErrorManager.MSG_WRITE_TO_READONLY_ATTR,
376 ErrorManager.grammarError(ErrorManager.MSG_FORWARD_ELEMENT_REF,
441 ErrorManager.grammarError(ErrorManager.MSG_FORWARD_ELEMENT_REF,
[all …]
DTreeToNFAConverter.g146 ErrorManager.grammarWarning( ErrorManager.MSG_NO_GRAMMAR_START_RULE,
168 ErrorManager.syntaxError(
169 ErrorManager.MSG_SYNTAX_ERROR,
339 ErrorManager.grammarError(ErrorManager.MSG_REWRITE_OR_OP_WITH_NO_OUTPUT_OPTION,
501 ErrorManager.grammarError(
502 ErrorManager.MSG_EMPTY_COMPLEMENT,
518 ErrorManager.grammarError(
519 ErrorManager.MSG_RULE_INVALID_SET,
536 ErrorManager.grammarError(
537 ErrorManager.MSG_EMPTY_COMPLEMENT,
[all …]
/external/antlr/antlr-3.4/tool/src/main/java/org/antlr/analysis/
DDecisionProbe.java34 import org.antlr.tool.ErrorManager;
419 ErrorManager.nonLLStarDecision(this); in issueWarnings()
434 ErrorManager.insufficientPredicates(this,d,insufficientAltToLocations); in issueWarnings()
452 if ( !explicitlyGreedy) ErrorManager.nondeterminism(this,d); in issueWarnings()
463 ErrorManager.danglingState(this,d); in issueWarnings()
480 ErrorManager.grammarWarning(ErrorManager.MSG_IMPORTED_TOKENS_RULE_EMPTY, in issueWarnings()
491 ErrorManager.unreachableAlts(this,unreachableAlts); in issueWarnings()
557 ErrorManager.recursionOverflow(this, in issueRecursionWarnings()
DNFAConversionThread.java31 import org.antlr.tool.ErrorManager;
61 ErrorManager.internalError("what the hell? DFA interruptus", e); in run()

123