Skip to main content

Class: PrefixedStrategy

lexure/src.PrefixedStrategy

Implements

Constructors

constructor

new PrefixedStrategy(prefixes, separators)

Parameters

NameType
prefixesreadonly string[]
separatorsreadonly string[]

Defined in

projects/utilities/packages/lexure/src/lib/parser/strategies/PrefixedStrategy.ts:8

Properties

prefixes

Readonly prefixes: readonly string[]

Defined in

projects/utilities/packages/lexure/src/lib/parser/strategies/PrefixedStrategy.ts:5


separators

Readonly separators: readonly string[]

Defined in

projects/utilities/packages/lexure/src/lib/parser/strategies/PrefixedStrategy.ts:6

Methods

matchFlag

matchFlag(input): Option<string>

Parameters

NameType
inputstring

Returns

Option<string>

Implementation of

IUnorderedStrategy.matchFlag

Defined in

projects/utilities/packages/lexure/src/lib/parser/strategies/PrefixedStrategy.ts:13


matchOption

matchOption(input): Option<readonly [string, string]>

Parameters

NameType
inputstring

Returns

Option<readonly [string, string]>

Implementation of

IUnorderedStrategy.matchOption

Defined in

projects/utilities/packages/lexure/src/lib/parser/strategies/PrefixedStrategy.ts:25