Constructors
constructor
- new Stream(tokens?: Array<Tokenize.Token>): Stream
-
Parameters
-
Default value tokens: Array<Tokenize.Token> = []
Properties
position
position: number
Private stream
stream: Array<any>
Methods
current
- current(): Tokenize.Token
forEach
- forEach(callback: any, thisArg: any): void
-
Parameters
-
callback: any
-
thisArg: any
Returns void
peek
- peek(n?: number): Tokenize.Token
-
Parameters
-
Default value n: number = 0
Returns Tokenize.Token
peekBack
- peekBack(n?: number): Tokenize.Token
-
Parameters
-
Default value n: number = 0
Returns Tokenize.Token
previous
- previous(): Tokenize.Token