class Context
Required header: <Eclog/Context.h>
The Context class represents a parsing context.
Name | Description |
---|---|
(constructor) | Constructor. |
terminate | Terminates the current parsing process. |
explicit Context(InputStream& stream, ParsingBuffer& buffer);
Constructs a Context.
InputStream&
stream The input stream to read from.
ParsingBuffer&
buffer The parsing buffer.
void terminate();
Sets this parsing context in the terminated state; the parsing process performed on this parsing context will stop as early as possible.
A ParseError
with error code pe_user_asked_for_termination occurs.