|
8 | 8 | #include <lbd/frontend/parser.h> |
9 | 9 | #include <lbd/options.h> |
10 | 10 |
|
11 | | -namespace intp::interp { |
| 11 | +namespace interpreter { |
12 | 12 | struct NativeFunction; |
13 | 13 | struct Thunk; |
14 | 14 | struct Environment; |
@@ -54,6 +54,7 @@ namespace intp::interp { |
54 | 54 | struct ResultOptions { |
55 | 55 | bool sideEffects = false; |
56 | 56 |
|
| 57 | + // TODO: _ may not be needed here |
57 | 58 | void interpolate(const ResultOptions &resultOptions_); |
58 | 59 | }; |
59 | 60 |
|
@@ -91,8 +92,8 @@ namespace intp::interp { |
91 | 92 | void set(const frontend::Expression *expression_, std::shared_ptr<Environment> environment_, |
92 | 93 | std::optional<frontend::Location> origin_ = std::nullopt); |
93 | 94 |
|
94 | | - void set_owned(frontend::Expression expression_, std::shared_ptr<Environment> environment_, |
95 | | - std::optional<frontend::Location> origin_ = std::nullopt); |
| 95 | + void setOwned(frontend::Expression expression_, std::shared_ptr<Environment> environment_, |
| 96 | + std::optional<frontend::Location> origin_ = std::nullopt); |
96 | 97 | }; |
97 | 98 |
|
98 | 99 | struct Environment : std::enable_shared_from_this<Environment> { |
@@ -121,8 +122,9 @@ namespace intp::interp { |
121 | 122 | ResultOptions options = {}; |
122 | 123 | }; |
123 | 124 |
|
124 | | - Result interpret(frontend::Program &program, std::optional<std::shared_ptr<Environment> > globalEnvironment = std::nullopt, |
125 | | - options::Options options_ = {}); |
| 125 | + Result interpret(frontend::Program &program, |
| 126 | + std::optional<std::shared_ptr<Environment> > globalEnvironment = std::nullopt, |
| 127 | + global::Options options_ = {}); |
126 | 128 |
|
127 | 129 | /// Add builtins Native Functions into Environment. |
128 | 130 | void installBuiltins(const std::shared_ptr<Environment> &environment); |
|
0 commit comments