Skip to content

Latest commit

 

History

History
47 lines (28 loc) · 892 Bytes

Context.md

File metadata and controls

47 lines (28 loc) · 892 Bytes

Context

class Context

Required header: <Eclog/Context.h>

The Context class represents a parsing context.

Member functions

Name Description
(constructor) Constructor.
terminate Terminates the current parsing process.

(constructor)

explicit Context(InputStream& stream, ParsingBuffer& buffer);

Constructs a Context.

Parameters

InputStream& stream The input stream to read from.

ParsingBuffer& buffer The parsing buffer.


terminate

void terminate();

Sets this parsing context in the terminated state; the parsing process performed on this parsing context will stop as early as possible.

Errors

A ParseError with error code pe_user_asked_for_termination occurs.