CS Parser

Class: ContextManager

ContextManager(Cx)

A ContextManager can control multiple contexts through the entire parsing

Constructor

new ContextManager(Cx)

Parameters:
Name Type Description
Cx Context

The root context to manage

Source:
ContextManager.js, line 4

Members

current Context

The current active context

Source:
ContextManager.js, line 29

readonlyhistory Array.<Context>

An array of contexts which have ever been activated

Source:
ContextManager.js, line 47

readonlyroot Context

The root context

Source:
ContextManager.js, line 21

Methods

feed(Bf)

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

Parameters:
Name Type Description
Bf Buffer
Source:
ContextManager.js, line 60

© 2018 Satoshi Soma

Licensed under the Apache License 2.0

Documentation generated by JSDoc 3.6.11 using Docolatte theme on Tue, 05 Sep 2023 18:54:56 GMT

    Hint: You don't need to click on the search box to input.

    Just start typing your words at any time to search for it.

    Classes

    • Composite
      • addChild
      • addChildren
      • traverse
      • verifyChild
    • Context
      • addChild
      • addChildren
      • cleanupChildren
      • clearBuffer
      • end
      • outline
      • parseChunk
      • populate
      • start
      • step
      • traverse
      • updateState
      • verifyChild
    • ContextManager
      • feed
    • Main
      • create
      • newRule
    • Parser
      • addRule
      • addRules
      • onComplete
      • onStart
      • parse
      • parseFile
    • ResultSet
      • add
      • traverse
    • Rule
      • addChild
      • addChildren
      • endsWith
      • express
      • fin
      • init
      • on
      • parse
      • startsWith
      • traverse
      • verifyChild