Searched refs:errors (Results 1 - 25 of 954) sorted by path

1234567891011>>

/external/antlr/antlr-3.4/lib/
H A Dantlr-3.4-complete.jarMETA-INF/ META-INF/MANIFEST.MF org/ org/antlr/ org/antlr/analysis/ org/antlr/codegen/ org/ ...
/external/antlr/antlr-3.4/runtime/ActionScript/project/lib/
H A DFlexAntTasks.jarMETA-INF/ META-INF/MANIFEST.MF com/ com/adobe/ com/adobe/ac/ com/adobe/ac/ant/ ...
/external/antlr/antlr-3.4/runtime/ActionScript/project/src/org/antlr/runtime/
H A DBaseRecognizer.as142 * not parsing. Once in recovery mode, no errors are generated.
156 // yet successfully, don't report any errors.
278 /** Get number of recognition errors (lexer, parser, tree parser). Each
280 * separate count. Does not count the spurious errors found between
H A DRecognizerSharedState.as4 * and recover from errors etc... As a separate state object, it can be
28 * one token/tree node is consumed for two errors.
/external/antlr/antlr-3.4/runtime/Delphi/Sources/Antlr3.Runtime/
H A DAntlr.Runtime.Tree.pas511 /// <summary>In case we don't have a token payload, what is the line for errors? </summary>
H A DAntlr.Runtime.pas287 /// errors and keep going, looking for a valid token.
299 /// characters until it gets a good one; errors are not passed through
480 /// and recover from errors
547 /// one token/tree node is consumed for two errors.
741 /// not parsing. Once in recovery mode, no errors are generated.
906 /// Get number of recognition errors (lexer, parser, tree parser). Each
908 /// separate count. Does not count the spurious errors found between
1493 /// is actually what we wanted next. Used for tree node errors too.
4677 // yet successfully, don't report any errors.
/external/antlr/antlr-3.4/runtime/Perl5/lib/ANTLR/Runtime/
H A DTokenSource.pm7 # until you get a good one; errors are not passed through to the parser.
35 errors and keep going, looking for a valid token.
/external/antlr/antlr-3.4/runtime/Python/
H A Dsetup.py8 from distutils.errors import *
H A Dxmlrunner.py133 stream.write('<testsuite errors="%(e)d" failures="%(f)d" ' % \
134 { "e": len(self.errors), "f": len(self.failures) })
251 self._try_test_run(TestTest, """<testsuite errors="0" failures="0" name="unittest.TestSuite" tests="0" time="0.000">
265 self._try_test_run(TestTest, """<testsuite errors="0" failures="0" name="unittest.TestSuite" tests="1" time="0.000">
280 self._try_test_run(TestTest, """<testsuite errors="0" failures="1" name="unittest.TestSuite" tests="1" time="0.000">
297 self._try_test_run(TestTest, """<testsuite errors="1" failures="0" name="unittest.TestSuite" tests="1" time="0.000">
314 self._try_test_run(TestTest, """<testsuite errors="0" failures="0" name="unittest.TestSuite" tests="1" time="0.000">
330 self._try_test_run(TestTest, """<testsuite errors="0" failures="0" name="unittest.TestSuite" tests="1" time="0.000">
/external/antlr/antlr-3.4/runtime/Python/tests/
H A Dt015calc.py10 def _evaluate(self, expr, expected, errors=[]):
17 assert len(parser.reportedErrors) == len(errors), parser.reportedErrors
39 # FIXME: most parse errors result in TypeErrors in action code, because
H A Dt057autoAST.py847 found, errors = self.execParser(grammar, "decl", "int 34 x=1;",
850 errors)
867 found, errors = self.execParser(grammar, "decl", "int =1;",
869 self.assertEquals(["line 1:4 missing ID at u'='"], errors)
886 found, errors = self.execParser(grammar, "decl", "x=1;",
888 self.assertEquals(["line 1:0 mismatched input u'x' expecting set None"], errors)
903 found, errors = self.execParser(grammar, "a", "abc", expectErrors=True)
904 self.assertEquals(["line 1:3 missing INT at '<EOF>'"], errors)
920 found, errors = self.execParser(grammar, "a", "abc", expectErrors=True)
921 self.assertEquals(["line 1:3 mismatched input '<EOF>' expecting INT"], errors)
[all...]
H A Dt058rewriteAST.py1368 found, errors = self.execParser(grammar, "decl", "int 34 x=1;",
1371 errors)
1389 found, errors = self.execParser(grammar, "decl", "int =1;",
1391 self.assertEquals(["line 1:4 missing ID at u'='"], errors)
1408 found, errors = self.execParser(grammar, "decl", "x=1;",
1411 errors);
1426 found, errors = self.execParser(grammar, "a", "abc",
1428 self.assertEquals(["line 1:3 missing INT at '<EOF>'"], errors)
1446 found, errors = self.execParser(grammar, "a", "abc ick 34",
1449 errors)
[all...]
H A Dtestbase.py12 from distutils.errors import *
/external/antlr/antlr-3.4/runtime/Ruby/lib/antlr3/
H A Derror.rb98 The base class of the variety of syntax errors that can occur during the
99 recognition process. These errors all typically concern an expectation built in
393 symbols. Thus, NoViableAlternative errors indicate that the current input does
/external/antlr/antlr-3.4/runtime/Ruby/test/functional/ast-output/
H A Dauto-ast.rb540 result, errors = parse( <<-'END', :decl, 'int 34 x=1;', true )
550 errors.should == [ "line 1:4 extraneous input \"34\" expecting ID" ]
555 result, errors = parse( <<-'END', :decl, 'int =1;', true )
565 errors.should == [ "line 1:4 missing ID at \"=\"" ]
570 result, errors = parse( <<-'END', :decl, 'x=1;', true )
581 errors.should == [ "line 1:0 mismatched input \"x\" expecting set nil" ]
586 result, errors = parse( <<-'END', :a, 'abc', true )
595 errors.should == [ "line 0:-1 missing INT at \"<EOF>\"" ]
600 result, errors = parse( <<-'END', :a, 'abc', true )
610 errors
[all...]
H A Drewrites.rb1133 result, errors = parse( <<-'END', :decl, 'int 34 x=1;', true )
1144 errors.should == [ 'line 1:4 extraneous input "34" expecting ID' ]
1150 result, errors = parse( <<-'END', :decl, 'int =1;', true )
1161 errors.should == [ 'line 1:4 missing ID at "="' ]
1167 result, errors = parse( <<-'END', :decl, 'x=1;', true )
1178 errors.should == [ 'line 1:0 mismatched input "x" expecting set nil' ]
1184 result, errors = parse( <<-'END', :a, 'abc', true )
1193 errors.should == [ "line 0:-1 missing INT at \"<EOF>\"" ]
1200 result, errors = parse( <<-'END', :a, 'abc ick 34', true )
1211 errors
[all...]
/external/antlr/antlr-3.4/runtime/Ruby/test/functional/parser/
H A Dbacktracking.rb48 * as errors within the function itself don't make it fail
49 * to predict that it's a function. Weird errors previously.
51 * because it makes debugging, actions, and errors harder.
H A Dcalc.rb71 errors = parser.reported_errors
72 return [ value, errors ]
87 parser_value, errors = evaluate( expression )
93 val, errors = evaluate "6 - (2*1"
95 errors.should have( 1 ).thing
96 errors.first.should =~ /mismatched/
/external/antlr/antlr-3.4/tool/src/main/java/org/antlr/tool/
H A DErrorManager.java50 /** Defines all the errors ANTLR can generator for both the tool and for
62 * find any errors/mismatches rather than leaving a mistyped string in
79 * During initialization of this class, all errors go straight to System.err.
81 * can I do errors properly? For example, if the string template group file
89 * TODO: get antlr.g etc.. parsing errors to come here.
93 // file errors
112 // code gen errors
204 // Dependency sorting errors
261 public int errors; field in class:ErrorManager.ErrorState
273 /** Track the number of errors regardles
[all...]
H A DGrammarReport.java67 int errors; field in class:GrammarReport.ReportData
245 data.errors = ErrorManager.getErrorState().errors;
464 buf.append("Number of errors: ");
465 buf.append(data.errors);
/external/antlr/antlr-3.4/tool/src/test/java/org/antlr/test/
H A DBaseTest.java75 * stdout and stderr. This doesn't trap errors from running antlr.
147 /** Return true if all is ok, no errors */
173 if ( equeue.errors.size()>0 ) {
175 System.err.println("antlr reports errors from "+options);
176 for (int i = 0; i < equeue.errors.size(); i++) {
177 Message msg = (Message) equeue.errors.get(i);
438 System.out.println(equeue.errors);
439 assertTrue("number of errors mismatch", n, equeue.errors.size());
442 for (int i = 0; i < equeue.errors
[all...]
H A DErrorQueue.java39 List errors = new LinkedList(); field in class:ErrorQueue
47 errors.add(msg);
55 errors.add(msg);
59 return infos.size() + errors.size() + warnings.size();
64 "errors: "+errors+
H A DTestAttributes.java111 assertEquals("unexpected errors: "+equeue, 0, equeue.errors.size());
137 assertEquals("unexpected errors: "+equeue, 0, equeue.errors.size());
165 assertEquals("unexpected errors: "+equeue, 0, equeue.errors.size());
201 assertEquals("unexpected errors: "+equeue, 0, equeue.errors.size());
226 assertEquals("unexpected errors: "+equeue, 0, equeue.errors
[all...]
H A DTestCharDFAConversion.java170 Message msg = (Message)equeue.errors.get(0);
350 Message msg = (Message)equeue.errors.get(0);
H A DTestCompositeGrammars.java46 assertEquals("unexpected errors: "+equeue, 0, equeue.errors.size());
227 assertEquals("unexpected errors: "+equeue, 0, equeue.errors.size());
255 assertEquals("unexpected errors: "+equeue, 1, equeue.errors.size());
257 assertEquals("unexpected errors: "+equeue, expectedError, equeue.errors.get(0).toString().replaceFirst("\\-[0-9]+",""));
306 assertEquals("unexpected errors: "+equeue, 1, equeue.errors
[all...]

Completed in 881 milliseconds

1234567891011>>