Home
last modified time | relevance | path

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

123

/external/antlr/tool/src/main/java/org/antlr/tool/
DGrammarSerializerFoo.java87 ErrorManager.error(ErrorManager.MSG_CANNOT_WRITE_FILE, filename); in grammar()
97 ErrorManager.error(ErrorManager.MSG_CANNOT_WRITE_FILE, filename); in rule()
106 ErrorManager.error(ErrorManager.MSG_CANNOT_WRITE_FILE, filename); in endRule()
116 ErrorManager.error(ErrorManager.MSG_CANNOT_WRITE_FILE, filename); in block()
126 ErrorManager.error(ErrorManager.MSG_CANNOT_WRITE_FILE, filename); in alt()
142 ErrorManager.error(ErrorManager.MSG_CANNOT_WRITE_FILE, filename); in endAlt()
153 ErrorManager.error(ErrorManager.MSG_CANNOT_WRITE_FILE, filename); in ruleRef()
165 ErrorManager.error(ErrorManager.MSG_CANNOT_WRITE_FILE, filename); in token()
180 ErrorManager.error(ErrorManager.MSG_CANNOT_WRITE_FILE, filename); in charLiteral()
190 ErrorManager.error(ErrorManager.MSG_CANNOT_WRITE_FILE, filename); in wildcard()
[all …]
DNameSpaceChecker.java80 ErrorManager.grammarError( in checkForRuleArgumentAndReturnValueConflicts()
81 ErrorManager.MSG_ARG_RETVAL_CONFLICT, in checkForRuleArgumentAndReturnValueConflicts()
98 msgID = ErrorManager.MSG_LEXER_RULES_NOT_ALLOWED; in checkForRuleDefinitionProblems()
104 msgID = ErrorManager.MSG_PARSER_RULES_NOT_ALLOWED; in checkForRuleDefinitionProblems()
107 msgID = ErrorManager.MSG_SYMBOL_CONFLICTS_WITH_GLOBAL_SCOPE; in checkForRuleDefinitionProblems()
110 ErrorManager.grammarError(msgID, grammar, ruleToken, ruleName); in checkForRuleDefinitionProblems()
133 ErrorManager.grammarError(ErrorManager.MSG_UNDEFINED_RULE_REF, in lookForReferencesToUndefinedSymbols()
147 ErrorManager.grammarWarning(ErrorManager.MSG_NO_TOKEN_DEFINITION, in lookForReferencesToUndefinedSymbols()
160 ErrorManager.grammarError(ErrorManager.MSG_NO_SUCH_GRAMMAR_SCOPE, in lookForReferencesToUndefinedSymbols()
169 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.java631 ErrorManager.error(ErrorManager.MSG_FILENAME_EXTENSION_ERROR, fileName); in setName()
638 ErrorManager.error(ErrorManager.MSG_FILE_AND_GRAMMAR_NAME_DIFFER, in setName()
678 ErrorManager.internalError("unexpected stream error from parsing "+fileName, e); in parseAndBuildAST()
691 ErrorManager.internalError("unexpected parser recognition error from "+fileName, re); in parseAndBuildAST()
699 ErrorManager.grammarWarning(ErrorManager.MSG_REWRITE_OR_OP_WITH_NO_OUTPUT_OPTION, in parseAndBuildAST()
704 ErrorManager.grammarError(ErrorManager.MSG_AST_OP_WITH_NON_AST_OUTPUT_OPTION, in parseAndBuildAST()
717 ErrorManager.error(ErrorManager.MSG_NO_RULES, getFileName()); in parseAndBuildAST()
733 ErrorManager.error(ErrorManager.MSG_CONFLICTING_OPTION_IN_TREE_FILTER, in dealWithTreeFilterMode()
737 ErrorManager.error(ErrorManager.MSG_CONFLICTING_OPTION_IN_TREE_FILTER, in dealWithTreeFilterMode()
742 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.java70 ErrorManager.grammarError(ErrorManager.MSG_CANNOT_ALIAS_TOKENS_IN_LEXER, in trackString()
83 ErrorManager.grammarError(ErrorManager.MSG_LITERAL_NOT_ASSOCIATED_WITH_LEXER_RULE, in trackString()
177 ErrorManager.grammarError(ErrorManager.MSG_TOKEN_ALIAS_CONFLICT, in alias()
193 ErrorManager.grammarError(ErrorManager.MSG_TOKEN_ALIAS_REASSIGNMENT, in alias()
DErrorManager.java94 public class ErrorManager { class
381 ErrorManager.error(ErrorManager.MSG_STRING_TEMPLATE_ERROR, msg.toString(), msg.cause);
390 ErrorManager.warning(ErrorManager.MSG_STRING_TEMPLATE_ERROR, msg.toString());
394 ErrorManager.error(ErrorManager.MSG_STRING_TEMPLATE_ERROR, msg.toString(), msg.cause);
401 ErrorManager.error(ErrorManager.MSG_STRING_TEMPLATE_ERROR, msg.toString(), msg.cause);
406 ErrorManager.error(ErrorManager.MSG_STRING_TEMPLATE_ERROR, msg.toString(), msg.cause);
434 ErrorManager.locale = locale; in setLocale()
465 ErrorManager.formatName = formatName; in setFormat()
852 Field[] fields = ErrorManager.class.getFields(); in initIdToMessageNameMapping()
864 msgID = f.getInt(ErrorManager.class); in initIdToMessageNameMapping()
[all …]
DAttributeScope.java128 ErrorManager.grammarError(ErrorManager.MSG_ARG_INIT_VALUES_ILLEGAL, in addAttributes()
150 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()
306 ErrorManager.error(ErrorManager.MSG_BAD_AST_STRUCTURE, e); in text()
/external/antlr/tool/src/test/java/org/antlr/test/
DTestSymbolDefinitions.java219 ErrorManager.setErrorListener(equeue); in testRefToRuleWithNoReturnValue()
242 ErrorManager.setErrorListener(equeue); in testParserStringLiterals()
248 int expectedMsgID = ErrorManager.MSG_LITERAL_NOT_ASSOCIATED_WITH_LEXER_RULE; in testParserStringLiterals()
256 ErrorManager.setErrorListener(equeue); in testParserCharLiterals()
262 int expectedMsgID = ErrorManager.MSG_LITERAL_NOT_ASSOCIATED_WITH_LEXER_RULE; in testParserCharLiterals()
270 ErrorManager.setErrorListener(equeue); in testEmptyNotChar()
276 int expectedMsgID = ErrorManager.MSG_EMPTY_COMPLEMENT; in testEmptyNotChar()
284 ErrorManager.setErrorListener(equeue); in testEmptyNotToken()
290 int expectedMsgID = ErrorManager.MSG_EMPTY_COMPLEMENT; in testEmptyNotToken()
298 ErrorManager.setErrorListener(equeue); in testEmptyNotSet()
[all …]
DTestAttributes.java99 ErrorManager.setErrorListener(equeue); in testArguments()
122 ErrorManager.setErrorListener(equeue); in testComplicatedArgParsing()
144 ErrorManager.setErrorListener(equeue); in testBracketArgParsing()
175 ErrorManager.setErrorListener(equeue); in testStringArgParsing()
211 ErrorManager.setErrorListener(equeue); in testComplicatedSingleArgParsing()
236 ErrorManager.setErrorListener(equeue); in testArgWithLT()
262 ErrorManager.setErrorListener(equeue); in testGenericsAsArgumentDefinition()
291 ErrorManager.setErrorListener(equeue); in testGenericsAsArgumentDefinition2()
326 ErrorManager.setErrorListener(equeue); in testGenericsAsReturnValue()
346 ErrorManager.setErrorListener(equeue); in testComplicatedArgParsingWithTranslation()
[all …]
DTestTemplates.java37 import org.antlr.tool.ErrorManager;
56 ErrorManager.setErrorListener(equeue); in testTemplateConstructor()
93 ErrorManager.setErrorListener(equeue); in testTemplateConstructorNoArgs()
131 ErrorManager.setErrorListener(equeue); in testIndirectTemplateConstructor()
167 ErrorManager.setErrorListener(equeue); in testStringConstructor()
202 ErrorManager.setErrorListener(equeue); in testSetAttr()
238 ErrorManager.setErrorListener(equeue); in testSetAttrOfExpr()
270 ErrorManager.setErrorListener(equeue); in testSetAttrOfExprInMembers()
296 ErrorManager.setErrorListener(equeue); in testCannotHaveSpaceBeforeDot()
312 int expectedMsgID = ErrorManager.MSG_INVALID_TEMPLATE_ACTION; in testCannotHaveSpaceBeforeDot()
[all …]
DTestCompositeGrammars.java43 ErrorManager.setErrorListener(equeue); in testWildcardStillWorks()
189 ErrorManager.setErrorListener(equeue); in testDelegatesSeeSameTokenType2()
235 ErrorManager.setErrorListener(equeue); in testCombinedImportsCombined()
264 ErrorManager.setErrorListener(equeue); in testSameStringTwoNames()
303 int expectedMsgID = ErrorManager.MSG_TOKEN_ALIAS_CONFLICT; in testSameStringTwoNames()
317 ErrorManager.setErrorListener(equeue); in testSameNameTwoStrings()
356 int expectedMsgID = ErrorManager.MSG_TOKEN_ALIAS_REASSIGNMENT; in testSameNameTwoStrings()
370 ErrorManager.setErrorListener(equeue); in testImportedTokenVocabIgnoredWithWarning()
393 int expectedMsgID = ErrorManager.MSG_TOKEN_VOCAB_IN_DELEGATE; in testImportedTokenVocabIgnoredWithWarning()
408 ErrorManager.setErrorListener(equeue); in testImportedTokenVocabWorksInRoot()
[all …]
DTestRewriteAST.java32 import org.antlr.tool.ErrorManager;
865 ErrorManager.setErrorListener(equeue); in testWeirdRuleRef()
1159 ErrorManager.setErrorListener(equeue); in testUnknownRule()
1176 int expectedMsgID = ErrorManager.MSG_UNDEFINED_RULE_REF; in testUnknownRule()
1187 ErrorManager.setErrorListener(equeue); in testKnownRuleButNotInLHS()
1205 int expectedMsgID = ErrorManager.MSG_REWRITE_ELEMENT_NOT_PRESENT_ON_LHS; in testKnownRuleButNotInLHS()
1216 ErrorManager.setErrorListener(equeue); in testUnknownToken()
1233 int expectedMsgID = ErrorManager.MSG_UNDEFINED_TOKEN_REF_IN_REWRITE; in testUnknownToken()
1244 ErrorManager.setErrorListener(equeue); in testUnknownLabel()
1261 int expectedMsgID = ErrorManager.MSG_UNDEFINED_LABEL_REF_IN_REWRITE; in testUnknownLabel()
[all …]
DTestMessages.java35 import org.antlr.tool.ErrorManager;
52 ErrorManager.setErrorListener(equeue); in testMessageStringificationIsConsistent()
71 int expectedMsgID = ErrorManager.MSG_WRITE_TO_READONLY_ATTR; in testMessageStringificationIsConsistent()
DTestSyntaxErrors.java31 import org.antlr.tool.ErrorManager;
128 ErrorManager.setErrorListener(errorQueue); in testStrayBracketRecovery()
158 ErrorManager.setErrorListener(errorQueue); in testMissingAttributeAccessPreventsCodeGeneration()
DTestRewriteTemplates.java240 ErrorManager.setErrorListener(equeue); in testRewriteRuleAndRewriteModeOnSimpleElements()
261 ErrorManager.setErrorListener(equeue); in testRewriteRuleAndRewriteModeIgnoreActionsPredicates()
283 ErrorManager.setErrorListener(equeue); in testRewriteRuleAndRewriteModeNotSimple()
302 ErrorManager.setErrorListener(equeue); in testRewriteRuleAndRewriteModeRefRule()
DTestSemanticPredicates.java257 ErrorManager.setErrorListener(equeue); in testLeftRecursivePred()
366 ErrorManager.setErrorListener(equeue); in testPredsUsedAfterRecursionOverflow()
400 ErrorManager.setErrorListener(equeue); in testPredsUsedAfterK2FailsNoRecursionOverflow()
564 ErrorManager.setErrorListener(equeue); in testIncompleteSemanticHoistedContext()
577 ErrorManager.setErrorListener(equeue); in testIncompleteSemanticHoistedContextk2()
591 ErrorManager.setErrorListener(equeue); in testIncompleteSemanticHoistedContextInFOLLOW()
605 ErrorManager.setErrorListener(equeue); in testIncompleteSemanticHoistedContextInFOLLOWk2()
620 ErrorManager.setErrorListener(equeue); in testIncompleteSemanticHoistedContextInFOLLOWDueToHiddenPred()
645 ErrorManager.setErrorListener(equeue); in testIncompleteSemanticHoistedContext2()
802 ErrorManager.setErrorListener(equeue); in checkDecision()
/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/tool/src/main/java/org/antlr/
DTool.java100 if (ErrorManager.getNumErrors() > 0) { in main()
148 ErrorManager.info("ANTLR Parser Generator Version " + VERSION); in processArgs()
175 ErrorManager.error(ErrorManager.MSG_OUTPUT_DIR_IS_FILE, outputDirectory); in processArgs()
193 ErrorManager.error(ErrorManager.MSG_DIR_NOT_FOUND, getLibraryDirectory()); in processArgs()
247 ErrorManager.setFormat(args[i]); in processArgs()
434 ErrorManager.info("ANTLR Parser Generator Version " + VERSION); in process()
442 ErrorManager.error(ErrorManager.MSG_INTERNAL_ERROR,e); in process()
445 ErrorManager.error(ErrorManager.MSG_INTERNAL_ERROR, e); in process()
457 ErrorManager.error(ErrorManager.MSG_INTERNAL_ERROR,e); in process()
557 ErrorManager.error(ErrorManager.MSG_CANNOT_WRITE_FILE, e); in process()
[all …]
/external/antlr/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()
283 if ( ErrorManager.doNotAttemptAnalysis() ) { in genRecognizer()
290 if ( ErrorManager.doNotAttemptCodeGen() ) { in genRecognizer()
422 ErrorManager.error(ErrorManager.MSG_BAD_AST_STRUCTURE, in genRecognizer()
448 if ( ErrorManager.getErrorState().errors > 0 ) { in genRecognizer()
474 ErrorManager.error(ErrorManager.MSG_CANNOT_WRITE_FILE, ioe); in genRecognizer()
496 ErrorManager.grammarError( in verifyActionScopesOkForTarget()
497 ErrorManager.MSG_INVALID_ACTION_SCOPE,grammar, in verifyActionScopesOkForTarget()
569 ErrorManager.internalError("no follow state or cannot compute follow"); in generateLocalFOLLOW()
[all …]
/external/antlr/tool/src/main/antlr3/org/antlr/grammar/v3/
DActionTranslator.g138 ErrorManager.grammarError(ErrorManager.MSG_NONUNIQUE_REF,
201 ErrorManager.grammarError(ErrorManager.MSG_WRITE_TO_READONLY_ATTR,
210 ErrorManager.grammarError(ErrorManager.MSG_WRITE_TO_READONLY_ATTR,
236 ErrorManager.grammarError(ErrorManager.MSG_RULE_REF_AMBIG_WITH_RULE_IN_ALT,
251 ErrorManager.grammarError(ErrorManager.MSG_RULE_HAS_NO_ARGS,
277 ErrorManager.grammarError(ErrorManager.MSG_WRITE_TO_READONLY_ATTR,
304 ErrorManager.grammarError(ErrorManager.MSG_FORWARD_ELEMENT_REF,
342 ErrorManager.grammarError(ErrorManager.MSG_WRITE_TO_READONLY_ATTR,
377 ErrorManager.grammarError(ErrorManager.MSG_FORWARD_ELEMENT_REF,
442 ErrorManager.grammarError(ErrorManager.MSG_FORWARD_ELEMENT_REF,
[all …]
DTreeToNFAConverter.g147 ErrorManager.grammarWarning( ErrorManager.MSG_NO_GRAMMAR_START_RULE,
169 ErrorManager.syntaxError(
170 ErrorManager.MSG_SYNTAX_ERROR,
340 ErrorManager.grammarError(ErrorManager.MSG_REWRITE_OR_OP_WITH_NO_OUTPUT_OPTION,
502 ErrorManager.grammarError(
503 ErrorManager.MSG_EMPTY_COMPLEMENT,
519 ErrorManager.grammarError(
520 ErrorManager.MSG_RULE_INVALID_SET,
537 ErrorManager.grammarError(
538 ErrorManager.MSG_EMPTY_COMPLEMENT,
[all …]
/external/antlr/tool/src/main/java/org/antlr/analysis/
DNFAConversionThread.java31 import org.antlr.tool.ErrorManager;
62 ErrorManager.internalError("what the hell? DFA interruptus", e); in run()

123