Skip to main content

Class: TokenStream

lexure/src.TokenStream

Implements

Constructors

constructor

new TokenStream(lexer, input)

Parameters

NameType
lexerLexer
inputstring

Defined in

projects/utilities/packages/lexure/src/lib/lexer/streams/raw/TokenStream.ts:9

Properties

input

Private Readonly input: string

Defined in

projects/utilities/packages/lexure/src/lib/lexer/streams/raw/TokenStream.ts:4


position

Private position: number = 0

Defined in

projects/utilities/packages/lexure/src/lib/lexer/streams/raw/TokenStream.ts:7


quotes

Private Readonly quotes: readonly [string, string][]

Defined in

projects/utilities/packages/lexure/src/lib/lexer/streams/raw/TokenStream.ts:5


separator

Private Readonly separator: string

Defined in

projects/utilities/packages/lexure/src/lib/lexer/streams/raw/TokenStream.ts:6

Accessors

finished

get finished(): boolean

Returns

boolean

Defined in

projects/utilities/packages/lexure/src/lib/lexer/streams/raw/TokenStream.ts:15

Methods

[iterator]

[iterator](): Iterator<Token, any, undefined>

Returns

Iterator<Token, any, undefined>

Implementation of

Iterable.__@iterator@95777

Defined in

projects/utilities/packages/lexure/src/lib/lexer/streams/raw/TokenStream.ts:19


getParameter

Private getParameter(): WordToken

Returns

WordToken

Defined in

projects/utilities/packages/lexure/src/lib/lexer/streams/raw/TokenStream.ts:50


getPossibleQuotedArgument

Private getPossibleQuotedArgument(): null | QuotedToken

Returns

null | QuotedToken

Defined in

projects/utilities/packages/lexure/src/lib/lexer/streams/raw/TokenStream.ts:34


getPossibleSeparator

Private getPossibleSeparator(): null | SeparatorToken

Returns

null | SeparatorToken

Defined in

projects/utilities/packages/lexure/src/lib/lexer/streams/raw/TokenStream.ts:25