parseKeyValuePair

Parses macros (or params) declaration list until the lexer is empty.

Macros are simple Key/Value pair. So, a macro is declared as: NAME=VALUE. Any number of whitespace (space / tab) can precede and follow the equal sign.

bool
parseKeyValuePair

Parameters

lexer Lexer

A reference to lexer consisting solely of macros definition (if stopAtSection is false), or consisting of a macro followed by other sections. Consequently, at the end of the parsing, the lexer will be empty or may point to a section.

pairs KeyValuePair[]

A reference to an array of KeyValuePair, where the macros will be stored.

Return Value

Type: bool

true if the parsing succeeded.

Meta