morph 0.1.0
Asynchronous bridge between GUI thread and business models
Loading...
Searching...
No Matches
morph::ui::detail::ExprParser Class Reference

Reads one JSON expression tree into Expr nodes, counting them against the size bound. More...

#include <expression.hpp>

Classes

struct  FormKeys
 The keys a form may carry beside its own. More...

Public Member Functions

std::expected< ExprPtr, Refusal > parse (Json const &json, std::string const &path)
 Parses json, whose JSON Pointer is path.

Detailed Description

Reads one JSON expression tree into Expr nodes, counting them against the size bound.

Definition at line 304 of file expression.hpp.

Member Function Documentation

◆ parse()

std::expected< ExprPtr, Refusal > morph::ui::detail::ExprParser::parse ( Json const & json,
std::string const & path )
inlinenodiscard

Parses json, whose JSON Pointer is path.

Parameters
jsonThe expression.
pathIts JSON Pointer.
Returns
The expression, or the refusal.

Definition at line 320 of file expression.hpp.


The documentation for this class was generated from the following file: