Shared allocation-free grammar kernel; sink calls are synchronous and may throw.
More...
#include <pss_parser.hpp>
template<class Sink>
class portals::detail::PssParser< Sink >
Shared allocation-free grammar kernel; sink calls are synchronous and may throw.
- Template Parameters
-
| Sink | Supplies rule/selector/declaration callbacks returning expected<void,PssError>. Runtime sinks may allocate; their wrapper catches allocation failure around the entire operation. No source view or callback is retained after parse() returns. |
◆ PssParser()
- Parameters
-
| source | Borrowed bytes retained only for this parser invocation. |
| sink | Borrowed synchronous destination; receives original source spans. |
| policy | Legacy byte compatibility or strict UTF-8 admission. |
| maxBytes | Input byte admission budget. |
| maxRules | Source-order rule admission budget. |
◆ parse()
- Returns
- Grammar/admission result; sink exceptions propagate to the owning runtime wrapper.
The documentation for this class was generated from the following file: