ArgScript::LambdaParser class

Base classes

class IParser
This interface represents a command or block that can be parsed in ArgScript.

Constructors, destructors, conversion operators

LambdaParser(ParseLine_t pParseLine)
LambdaParser(ParseLine_t pParseLine, GetDescription_t pGetDescription)
LambdaParser(ParseLine_t pParseLine, SetData_t pSetData)

Public functions

auto ParseLine(const Line& line) -> void override
auto GetDescription(DescriptionMode mode) const -> const char* override
Returns a basic or complete description of what this parser does.
auto SetData(FormatParser* pFormatParser, void* pData) -> void override
Sets the data and FormatParser of this parser.

Protected variables

ParseLine_t mpParseLine
GetDescription_t mpGetDescription
SetData_t mpSetData

Function documentation

const char* ArgScript::LambdaParser::GetDescription(DescriptionMode mode) const override

Returns a basic or complete description of what this parser does.

Parameters
mode Whether the basic or complete description must be returned, in the DescriptionMode enum.

This usually includes information about how to use it, i.e. the arguments required, possible options, etc

void ArgScript::LambdaParser::SetData(FormatParser* pFormatParser, void* pData) override

Sets the data and FormatParser of this parser.

This method is called when FormatParser::AddParser() or IBlock::AddParser() are used.