MCPcopy Create free account
hub / github.com/Gecode/gecode / yyerror

Function yyerror

gecode/flatzinc/parser.tab.cpp:105–111  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

103using namespace Gecode::FlatZinc;
104
105void yyerror(void* parm, const char *str) {
106 ParserState* pp = static_cast<ParserState*>(parm);
107 pp->err << "Error: " << str
108 << " in line no. " << yyget_lineno(pp->yyscanner)
109 << std::endl;
110 pp->hadError = true;
111}
112
113void yyassert(ParserState* pp, bool cond, const char* str)
114{

Callers 3

initfgFunction · 0.85
yyparseFunction · 0.85
lexer.yy.cppFile · 0.85

Calls 1

yyget_linenoFunction · 0.85

Tested by

no test coverage detected