Class: ParseStream <T>

Type parameters

T: Token

Hierarchy

  • ParseStream

Constructors

constructor

+ new ParseStream(tokens: T[], parseToken: ParseToken‹T›): ParseStream

Defined in parser/parse-stream.ts:12

Parameters:

Name Type
tokens T[]
parseToken ParseToken‹T›

Returns: ParseStream

Properties

Private handlers

handlers: object

Defined in parser/parse-stream.ts:10

Type declaration:

  • [ key: string]: function

▸ (arg: any): void

Parameters:

Name Type
arg any

Private parseToken

parseToken: ParseToken‹T›

Defined in parser/parse-stream.ts:12


Private stopRequested

stopRequested: boolean = false

Defined in parser/parse-stream.ts:11


Private tokens

tokens: T[]

Defined in parser/parse-stream.ts:9

Methods

on

on<T2>(name: string, cb: function): ParseStream‹T›

Defined in parser/parse-stream.ts:18

Type parameters:

T2: Template | T | undefined

Parameters:

name: string

cb: function

▸ (arg: T2): void

Parameters:

Name Type
arg T2

Returns: ParseStream‹T›


start

start(): this

Defined in parser/parse-stream.ts:26

Returns: this


stop

stop(): this

Defined in parser/parse-stream.ts:40

Returns: this


Private trigger

trigger<T>(event: string, arg?: T): boolean

Defined in parser/parse-stream.ts:22

Type parameters:

T: Token | Template

Parameters:

Name Type
event string
arg? T

Returns: boolean