|
morph 0.1.0
Asynchronous bridge between GUI thread and business models
|
What an evaluated expression reads: the interpreter implements it over its reactive values. More...
#include <expression.hpp>
Public Member Functions | |
| Environment (Environment const &)=delete | |
| Environment & | operator= (Environment const &)=delete |
| Environment (Environment &&)=delete | |
| Environment & | operator= (Environment &&)=delete |
| virtual Value | ref (std::string_view head, std::span< std::string const > path) const =0 |
| Reads {"ref": "head.path"}. | |
| virtual Value | row (std::span< std::string const > path) const =0 |
| Reads {"row": "path"}. | |
| virtual Value | control (ExprKind form, std::string_view name) const =0 |
| Reads query, pending, error, result, errorKind or can. | |
| virtual Value | pref (std::string_view point, std::span< std::string const > path) const =0 |
| Reads {"pref": "point.path"}. | |
| virtual Value | client (ExprKind form, std::string_view name) const =0 |
| Reads env, session or host. | |
| virtual FormatContext const & | formatting () const =0 |
| The formatting facts. | |
| virtual void | report (std::string_view path, std::string_view reason) const =0 |
| Reports a runtime error of an expression. | |
What an evaluated expression reads: the interpreter implements it over its reactive values.
Every read returns a value; a name the environment does not hold reads as null. report is the client's diagnostic channel: the evaluator reports each runtime error there, with the expression's path.
Definition at line 1066 of file expression.hpp.
|
nodiscardpure virtual |
Reads {"ref": "head.path"}.
| head | The first segment. |
| path | The segments after it. |
Implemented in morph::ui::detail::host::ParamsEnv, morph::ui::detail::ScopeEnv, and morph::ui::StaticEnvironment.
|
nodiscardpure virtual |
Reads {"row": "path"}.
| path | The field path inside the innermost row. |
Implemented in morph::ui::detail::host::ParamsEnv, morph::ui::detail::ScopeEnv, and morph::ui::StaticEnvironment.
|
nodiscardpure virtual |
Reads query, pending, error, result, errorKind or can.
| form | The form. |
| name | The query or mutation. |
Implemented in morph::ui::detail::host::ParamsEnv, morph::ui::detail::ScopeEnv, and morph::ui::StaticEnvironment.
|
nodiscardpure virtual |
Reads {"pref": "point.path"}.
| point | The customization point. |
| path | The segments after it. |
Implemented in morph::ui::detail::host::ParamsEnv, morph::ui::detail::ScopeEnv, and morph::ui::StaticEnvironment.
|
nodiscardpure virtual |
Reads env, session or host.
| form | The form. |
| name | The name read. |
Implemented in morph::ui::detail::host::ParamsEnv, morph::ui::detail::ScopeEnv, and morph::ui::StaticEnvironment.
|
nodiscardpure virtual |
The formatting facts.
Implemented in morph::ui::detail::host::ParamsEnv, morph::ui::detail::ScopeEnv, and morph::ui::StaticEnvironment.
|
pure virtual |
Reports a runtime error of an expression.
| path | The JSON Pointer of the expression node that failed. |
| reason | What went wrong. |
Implemented in morph::ui::detail::host::ParamsEnv, morph::ui::detail::ScopeEnv, and morph::ui::StaticEnvironment.