Class: PrefixedStrategy
Implements
Constructors
new PrefixedStrategy()
new PrefixedStrategy(
prefixes: readonlystring[],separators: readonlystring[]):PrefixedStrategy
Parameters
| Parameter | Type |
|---|---|
prefixes | readonly string[] |
separators | readonly string[] |
Returns
Source
lib/parser/strategies/PrefixedStrategy.ts:8
Properties
prefixes
readonlyprefixes: readonlystring[]
Source
lib/parser/strategies/PrefixedStrategy.ts:5
separators
readonlyseparators: readonlystring[]
Source
lib/parser/strategies/PrefixedStrategy.ts:6
Methods
matchFlag()
matchFlag(
input:string):Option<string>
Matches a flag.
Parameters
| Parameter | Type | Description |
|---|---|---|
input | string | The string to match. |
Returns
Option<string>
Implementation of
IUnorderedStrategy . matchFlag
Source
lib/parser/strategies/PrefixedStrategy.ts:13
matchOption()
matchOption(
input:string):Option<readonly [string,string]>
Matches an option.
Parameters
| Parameter | Type | Description |
|---|---|---|
input | string | The string to match. |
Returns
Option<readonly [string, string]>
Implementation of
IUnorderedStrategy . matchOption