summaryrefslogtreecommitdiff
path: root/src/util/sexpr.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/util/sexpr.h')
-rw-r--r--src/util/sexpr.h13
1 files changed, 8 insertions, 5 deletions
diff --git a/src/util/sexpr.h b/src/util/sexpr.h
index 135a83c7e..e9ea83aa1 100644
--- a/src/util/sexpr.h
+++ b/src/util/sexpr.h
@@ -37,6 +37,13 @@
namespace CVC4 {
+class CVC4_PUBLIC SExprKeyword {
+ std::string d_str;
+public:
+ SExprKeyword(const std::string& s) : d_str(s) {}
+ const std::string& getString() const { return d_str; }
+};/* class SExpr::Keyword */
+
/**
* A simple S-expression. An S-expression is either an atom with a
* string value, or a list of other S-expressions.
@@ -65,11 +72,7 @@ class CVC4_PUBLIC SExpr {
public:
- class CVC4_PUBLIC Keyword : protected std::string {
- public:
- Keyword(const std::string& s) : std::string(s) {}
- const std::string& getString() const { return *this; }
- };/* class SExpr::Keyword */
+ typedef SExprKeyword Keyword;
SExpr() :
d_sexprType(SEXPR_STRING),
generated by cgit on debian on lair
contact matthew@masot.net with questions or feedback