Added axiom rule support for SAS translator output.

This commit is contained in:
2016-05-23 17:13:11 +02:00
parent a5fd698888
commit 05058c149e
6 changed files with 66 additions and 14 deletions

View File

@@ -40,6 +40,8 @@ class Description
const Operators &operators() const;
const AxiomRules &axiomRules() const;
bool usesAxiomRules() const;
private:
Description();

View File

@@ -65,6 +65,7 @@ inline std::string escapeASP(const std::string &string)
boost::replace_all(escaped, "_", "__");
boost::replace_all(escaped, "-", "_h");
boost::replace_all(escaped, "@", "_a");
return escaped;
}
@@ -75,6 +76,7 @@ inline std::string unescapeASP(const std::string &string)
{
auto unescaped = string;
boost::replace_all(unescaped, "_a", "@");
boost::replace_all(unescaped, "_h", "-");
boost::replace_all(unescaped, "__", "_");