DIRECTOR: LINGO: Improved debug output

This commit is contained in:
Eugene Sandulenko 2019-12-20 10:41:32 +01:00
parent b21632c835
commit c5c8f3458b
2 changed files with 12 additions and 12 deletions

View File

@ -1387,11 +1387,11 @@ YY_RULE_SETUP
field = Common::String::format("%d%s", g_lingo->_theEntities[ptr]->entity, field.c_str());
if (!g_lingo->_theEntityFields.contains(field)) {
error("Unhandled the field %s", ptr);
error("LEXER: Unhandled the field %s", ptr);
}
if (g_lingo->_theEntityFields[field]->entity != g_lingo->_theEntities[ptr]->entity)
error("Unsupported field '%s' for entity '%s'", field.c_str(), ptr);
error("LEXER: Unsupported field '%s' for entity '%s'", field.c_str(), ptr);
yylval.e[0] = g_lingo->_theEntities[ptr]->entity;
yylval.e[1] = g_lingo->_theEntityFields[field]->field;
@ -1402,7 +1402,7 @@ YY_RULE_SETUP
return THEENTITY;
}
warning("Unhandled the entity %s", ptr);
warning("LEXER: Unhandled the entity %s", ptr);
}
YY_BREAK
case 52:
@ -1425,11 +1425,11 @@ YY_RULE_SETUP
field = Common::String::format("%d%s", g_lingo->_theEntities[ptr]->entity, field.c_str());
if (!g_lingo->_theEntityFields.contains(field)) {
error("Unhandled the field %s", ptr);
error("LEXER: Unhandled the field %s", ptr);
}
if (g_lingo->_theEntityFields[field]->entity != g_lingo->_theEntities[ptr]->entity)
error("Unsupported field '%s' for entity '%s'", field.c_str(), ptr);
error("LEXER: Unsupported field '%s' for entity '%s'", field.c_str(), ptr);
yylval.e[0] = g_lingo->_theEntities[ptr]->entity;
yylval.e[1] = g_lingo->_theEntityFields[field]->field;
@ -1460,7 +1460,7 @@ YY_RULE_SETUP
return THEENTITY;
}
warning("Unhandled the entity %s", ptr);
warning("LEXER: Unhandled the entity %s", ptr);
}
YY_BREAK
case 54:

View File

@ -206,11 +206,11 @@ whitespace [\t ]
field = Common::String::format("%d%s", g_lingo->_theEntities[ptr]->entity, field.c_str());
if (!g_lingo->_theEntityFields.contains(field)) {
error("Unhandled the field %s", ptr);
error("LEXER: Unhandled the field %s", ptr);
}
if (g_lingo->_theEntityFields[field]->entity != g_lingo->_theEntities[ptr]->entity)
error("Unsupported field '%s' for entity '%s'", field.c_str(), ptr);
error("LEXER: Unsupported field '%s' for entity '%s'", field.c_str(), ptr);
yylval.e[0] = g_lingo->_theEntities[ptr]->entity;
yylval.e[1] = g_lingo->_theEntityFields[field]->field;
@ -221,7 +221,7 @@ whitespace [\t ]
return THEENTITY;
}
warning("Unhandled the entity %s", ptr);
warning("LEXER: Unhandled the entity %s", ptr);
}
(?i:the[ \t]+[[:alpha:]]+[ \t+](date|time)) {
count();
@ -240,11 +240,11 @@ whitespace [\t ]
field = Common::String::format("%d%s", g_lingo->_theEntities[ptr]->entity, field.c_str());
if (!g_lingo->_theEntityFields.contains(field)) {
error("Unhandled the field %s", ptr);
error("LEXER: Unhandled the field %s", ptr);
}
if (g_lingo->_theEntityFields[field]->entity != g_lingo->_theEntities[ptr]->entity)
error("Unsupported field '%s' for entity '%s'", field.c_str(), ptr);
error("LEXER: Unsupported field '%s' for entity '%s'", field.c_str(), ptr);
yylval.e[0] = g_lingo->_theEntities[ptr]->entity;
yylval.e[1] = g_lingo->_theEntityFields[field]->field;
@ -271,7 +271,7 @@ whitespace [\t ]
return THEENTITY;
}
warning("Unhandled the entity %s", ptr);
warning("LEXER: Unhandled the entity %s", ptr);
}
(?i:then) { count(); return tTHEN; }
(?i:to) { count(); return tTO; }