Skip to main content

Class: ParserResult

Constructors

new ParserResult()

new ParserResult(parser: Parser): ParserResult

Parameters

ParameterType
parserParser

Returns

ParserResult

Defined in

parser/ParserResult.ts:11

Properties

flags

readonly flags: Set<string>

Defined in

parser/ParserResult.ts:7


options

readonly options: Map<string, string[]>

Defined in

parser/ParserResult.ts:8


ordered

readonly ordered: Parameter[] = []

Defined in

parser/ParserResult.ts:6


strategy

private readonly strategy: IUnorderedStrategy

Defined in

parser/ParserResult.ts:9

Methods

parse()

parse(parameters: Iterable<Parameter>): ParserResult

Parameters

ParameterType
parametersIterable<Parameter>

Returns

ParserResult

Defined in

parser/ParserResult.ts:15


parseOrdered()

private parseOrdered(parameter: Parameter): boolean

Parameters

ParameterType
parameterParameter

Returns

boolean

Defined in

parser/ParserResult.ts:41


parsePossibleFlag()

private parsePossibleFlag(parameter: Parameter): boolean

Parameters

ParameterType
parameterParameter

Returns

boolean

Defined in

parser/ParserResult.ts:23


parsePossibleOptions()

private parsePossibleOptions(parameter: Parameter): boolean

Parameters

ParameterType
parameterParameter

Returns

boolean

Defined in

parser/ParserResult.ts:30