ContextManager

ContextManager

A ContextManager can control multiple contexts through the entire parsing

Constructor

new ContextManager(Cx)

Source:
Parameters:
Name Type Description
Cx Context

The root context to manage

Members

current :Context

The current active context

Source:
Type:

(readonly) history :Array.<Context>

An array of contexts which have ever been activated

Source:
Type:

(readonly) root :Context

The root context

Source:
Type:

Methods

feed(Bf)

Feeds a buffer to all the appropriate contexts depending on the current context

Source:
Parameters:
Name Type Description
Bf Buffer