diff options
author | Andres Noetzli <andres.noetzli@gmail.com> | 2021-05-14 15:56:11 -0700 |
---|---|---|
committer | Andres Noetzli <andres.noetzli@gmail.com> | 2021-05-17 19:58:21 -0700 |
commit | 98512d53bad33ee25835a04b1e83acab815d454f (patch) | |
tree | 86aaca79768c53eba571108dc0633ca0b3720456 /src/main/interactive_shell.h | |
parent | 6e6d2b59538a010b61434387498afa594434cfa9 (diff) |
Split parser state from parser classparser-state
This commit splits the parser state from the parser class.
Diffstat (limited to 'src/main/interactive_shell.h')
-rw-r--r-- | src/main/interactive_shell.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/main/interactive_shell.h b/src/main/interactive_shell.h index cf5f22b51..856106187 100644 --- a/src/main/interactive_shell.h +++ b/src/main/interactive_shell.h @@ -43,7 +43,7 @@ class InteractiveShell const Options& d_options; std::istream& d_in; std::ostream& d_out; - parser::Parser* d_parser; + std::unique_ptr<parser::Parser> d_parser; bool d_quit; bool d_usingEditline; @@ -69,7 +69,7 @@ public: /** * Return the internal parser being used. */ - parser::Parser* getParser() { return d_parser; } + parser::Parser* getParser() { return d_parser.get(); } };/* class InteractiveShell */ |