Home
last modified time | relevance | path

Searched refs:errtext (Results 1 – 7 of 7) sorted by relevance

/external/antlr/runtime/Cpp/include/
Dantlr3treeparser.inl81 typename ImplTraits::StringStreamType errtext; local
88 errtext << "-end of input-(";
92 errtext << "-unknown source-(";
97 errtext << ex->get_streamName() << "(";
102 errtext << this->get_rec()->get_state()->get_exception()->get_line() << ") ";
103 errtext << " : error " << this->get_rec()->get_state()->get_exception()->getType()
118 errtext << ", at offset "
120 errtext << ", near " << ttext;
122 ex->displayRecognitionError( errtext );
123 ImplTraits::displayRecognitionError( errtext.str() );
Dantlr3parser.inl73 typename ImplTraits::StringStreamType errtext; local
80 errtext << "-end of input-(";
84 errtext << "-unknown source-(";
89 errtext << ex->get_streamName() << "(";
94 errtext << this->get_rec()->get_state()->get_exception()->get_line() << ") ";
95 errtext << " : error " << this->get_rec()->get_state()->get_exception()->getType()
104 errtext << ", at offset , "
110 errtext << ", at <EOF>";
116 errtext << "\n near " << ( ttext.empty()
121 ex->displayRecognitionError( tokenNames, errtext );
[all …]
/external/python/cpython3/Lib/test/
Dtest_syntax.py600 def _check_error(self, code, errtext, argument
613 mo = re.search(errtext, str(err))
615 self.fail("SyntaxError did not contain '%r'" % (errtext,))
/external/python/cpython2/Lib/test/
Dtest_syntax.py628 def _check_error(self, code, errtext, argument
641 mo = re.search(errtext, str(err))
643 self.fail("%s did not contain '%r'" % (err, errtext,))
/external/python/cpython3/Python/
Dpythonrun.c1334 PyObject *v, *w, *errtype, *errtext; in err_input() local
1423 errtext = Py_None; in err_input()
1426 errtext = PyUnicode_DecodeUTF8(err->text, err->offset, in err_input()
1428 if (errtext != NULL) { in err_input()
1430 offset = (int)PyUnicode_GET_LENGTH(errtext); in err_input()
1432 Py_DECREF(errtext); in err_input()
1433 errtext = PyUnicode_DecodeUTF8(err->text, len, in err_input()
1439 err->lineno, offset, errtext); in err_input()
/external/python/cpython2/Lib/test/support/
D__init__.py854 def check_syntax_error(testcase, statement, errtext='', lineno=None, offset=None): argument
855 with testcase.assertRaisesRegexp(SyntaxError, errtext) as cm:
/external/python/cpython3/Doc/library/
Dtest.rst939 .. function:: check_syntax_error(testcase, statement, errtext='', *, lineno=None, offset=None)
942 *testcase* is the :mod:`unittest` instance for the test. *errtext* is the