Class: PrefixedStrategy
@sapphire/lexure.PrefixedStrategy
Implements
Constructors
constructor
• new PrefixedStrategy(prefixes
, separators
)
Parameters
Name | Type |
---|---|
prefixes | readonly string [] |
separators | readonly string [] |
Defined in
lib/parser/strategies/PrefixedStrategy.ts:8
Properties
prefixes
• Readonly
prefixes: readonly string
[]
Defined in
lib/parser/strategies/PrefixedStrategy.ts:5
separators
• Readonly
separators: readonly string
[]
Defined in
lib/parser/strategies/PrefixedStrategy.ts:6
Methods
matchFlag
▸ matchFlag(input
): Option
<string
>
Matches a flag.
Parameters
Name | Type | Description |
---|---|---|
input | string | The string to match. |
Returns
Option
<string
>
Implementation of
Defined in
lib/parser/strategies/PrefixedStrategy.ts:13
matchOption
▸ matchOption(input
): Option
<readonly [string
, string
]>
Matches an option.
Parameters
Name | Type | Description |
---|---|---|
input | string | The string to match. |
Returns
Option
<readonly [string
, string
]>
Implementation of
IUnorderedStrategy.matchOption