summaryrefslogtreecommitdiff
path: root/src/parser/parser.h
diff options
context:
space:
mode:
authorAndrew Reynolds <andrew.j.reynolds@gmail.com>2020-11-13 09:49:36 -0600
committerGitHub <noreply@github.com>2020-11-13 09:49:36 -0600
commit74be116f3956dab6be0b8e3e18f723957a351fbf (patch)
treebc13cfd3fc3d288b7afb2b0ddc874b924034790b /src/parser/parser.h
parent151a4bb262713a94c488f2e4e8c1f5d498098253 (diff)
Add more features to symbol manager (#5434)
This is in preparation for having the symbol manager manage expression names at the parser level instead of inside SmtEngine. This adds some necessary features regarding scopes and global declarations. This PR still does not change the behavior of the parser.
Diffstat (limited to 'src/parser/parser.h')
-rw-r--r--src/parser/parser.h17
1 files changed, 2 insertions, 15 deletions
diff --git a/src/parser/parser.h b/src/parser/parser.h
index 8987b928b..d30ea7c16 100644
--- a/src/parser/parser.h
+++ b/src/parser/parser.h
@@ -128,12 +128,6 @@ private:
size_t d_assertionLevel;
/**
- * Whether we're in global declarations mode (all definitions and
- * declarations are global).
- */
- bool d_globalDeclarations;
-
- /**
* Maintains a list of reserved symbols at the assertion level that might
* not occur in our symbol table. This is necessary to e.g. support the
* proper behavior of the :named annotation in SMT-LIBv2 when used under
@@ -767,15 +761,8 @@ public:
virtual void reset();
- void setGlobalDeclarations(bool flag) {
- d_globalDeclarations = flag;
- }
-
- bool getGlobalDeclarations() { return d_globalDeclarations; }
-
- inline SymbolTable* getSymbolTable() const {
- return d_symtab;
- }
+ /** Return the symbol manager used by this parser. */
+ SymbolManager* getSymbolManager();
//------------------------ operator overloading
/** is this function overloaded? */
generated by cgit on debian on lair
contact matthew@masot.net with questions or feedback