Added axiom rule support for SAS translator output.
This commit is contained in:
@@ -40,6 +40,8 @@ class Description
|
||||
const Operators &operators() const;
|
||||
const AxiomRules &axiomRules() const;
|
||||
|
||||
bool usesAxiomRules() const;
|
||||
|
||||
private:
|
||||
Description();
|
||||
|
||||
|
@@ -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, "__", "_");
|
||||
|
||||
|
Reference in New Issue
Block a user