|
morph 0.1.0
Asynchronous bridge between GUI thread and business models
|
The Environment the evaluator reads through: a scope chain and the names bound at one place. More...
#include <interpreter.hpp>
Public Member Functions | |
| ScopeEnv (RtScope const &scope, Bindings const *bindings, Value const *row=nullptr) | |
Reads scope. | |
| Value | ref (std::string_view head, std::span< std::string const > path) const override |
| Reads a name: a binding, then the scope chain. | |
| Value | row (std::span< std::string const > path) const override |
| Reads the innermost row. | |
| Value | control (ExprKind form, std::string_view name) const override |
| Reads a query or mutation form. | |
| Value | pref (std::string_view point, std::span< std::string const > path) const override |
| Reads a customization choice. | |
| Value | client (ExprKind form, std::string_view name) const override |
| Reads env, session or host. | |
| FormatContext const & | formatting () const override |
| The session's formatting facts. | |
| void | report (std::string_view path, std::string_view reason) const override |
| Reports to the screen's diagnostics. | |
| Public Member Functions inherited from morph::ui::Environment | |
| Environment (Environment const &)=delete | |
| Environment & | operator= (Environment const &)=delete |
| Environment (Environment &&)=delete | |
| Environment & | operator= (Environment &&)=delete |
The Environment the evaluator reads through: a scope chain and the names bound at one place.
Definition at line 1733 of file interpreter.hpp.
|
inline |
Reads scope.
| scope | The scope. |
| bindings | The names bound here; may be nullptr. |
| row | A row to read instead of the scope's (a table's key, evaluated before its row scope exists). |
Definition at line 1739 of file interpreter.hpp.
|
inlinenodiscardoverridevirtual |
Reads a name: a binding, then the scope chain.
| head | The name. |
| path | The path after it. |
Implements morph::ui::Environment.
Definition at line 3421 of file interpreter.hpp.
|
inlinenodiscardoverridevirtual |
Reads the innermost row.
| path | The path. |
Implements morph::ui::Environment.
Definition at line 1751 of file interpreter.hpp.
|
inlinenodiscardoverridevirtual |
Reads a query or mutation form.
| form | The form. |
| name | The query or mutation. |
Implements morph::ui::Environment.
Definition at line 3479 of file interpreter.hpp.
|
inlinenodiscardoverridevirtual |
Reads a customization choice.
| point | The point. |
| path | The path. |
Implements morph::ui::Environment.
Definition at line 3520 of file interpreter.hpp.
|
inlinenodiscardoverridevirtual |
Reads env, session or host.
| form | The form. |
| name | The name. |
Implements morph::ui::Environment.
Definition at line 3526 of file interpreter.hpp.
|
inlinenodiscardoverridevirtual |
The session's formatting facts.
Implements morph::ui::Environment.
Definition at line 3530 of file interpreter.hpp.
|
inlineoverridevirtual |
Reports to the screen's diagnostics.
| path | The expression's path. |
| reason | What went wrong. |
Implements morph::ui::Environment.
Definition at line 3532 of file interpreter.hpp.