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