Preliminary decomposition syntax validation introduced

This commit is contained in:
Simon Rozman
2017-04-28 19:37:14 +02:00
parent ba55173f28
commit a6693673a5
6 changed files with 380 additions and 0 deletions

View File

@@ -188,6 +188,11 @@ int _tmain(int argc, _TCHAR *argv[])
// Read translation from the database.
ZRCola::DBSource::translation trans;
if (src.GetTranslation(rs, trans)) {
try {
unique_ptr<ZRCola::DecompParser::Expression> res(ZRCola::DecompParser(trans.src.str).Parse());
} catch (...) {
}
// Add translation to temporary database.
auto const t = db_temp1.find(trans.dst.str);
if (t != db_temp1.end())