Show:
Extends
Methods
addListenersOn(tokenEmitter)
Register to a token source, normally the tokenizer.
Register to a token source, normally the tokenizer. The event emitter emits a 'chunk' event with a chunk of tokens, and signals the end of tokens by triggering the 'end' event. XXX: Perform registration directly in the constructor?
Parameters:
Name | Type | Description |
---|---|---|
tokenEmitter |
EventEmitter | Token event emitter. |
addTransform(transformation, debugName, rank, type, name)
Add a transform registration.
Add a transform registration.
Parameters:
Name | Type | Description | |||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
transformation |
function |
Properties
|
|||||||||||||||||||||||||||||||||
debugName |
string | Debug string to identify the transformer in a trace. |
|||||||||||||||||||||||||||||||||
rank |
number | A number in [0,3) with:
|
|||||||||||||||||||||||||||||||||
type |
string | One of 'tag', 'text', 'newline', 'comment', 'end', 'martian' (unknown token), 'any' (any token, matched before other matches). |
|||||||||||||||||||||||||||||||||
name |
string | Tag name for tags, omitted for non-tags |
setPipelineId()
Debugging aid: set pipeline id
.Debugging aid: set pipeline id
- Source: