Parsnip
parsing library
Loading...
Searching...
No Matches
Public Member Functions
Parsnip::EndOfOptionEvaluator Class Reference

An evaluator representing abrupt end of the command pattern. More...

#include <parsnip_evaluate.h>

Inheritance diagram for Parsnip::EndOfOptionEvaluator:
Parsnip::Evaluator

Public Member Functions

 Evaluator ()=default
 
 Evaluator (Evaluator *original)
 Upgrade an evaluator.
 
- Public Member Functions inherited from Parsnip::Evaluator
 Evaluator (Evaluator *original)
 Upgrade an evaluator.
 
int evaluate (ArgvCursor *cursor, Parsnip::Data &result_dict)
 Evaluate a token in the command line, and recurse if there is more to go.
 
virtual bool operator== (const Evaluator &) const
 Check if two evaluators are the same.
 
bool operator!= (const Evaluator &other) const
 

Additional Inherited Members

- Public Types inherited from Parsnip::Evaluator
using StringType = std::string
 
using CommandId = int
 
- Static Public Member Functions inherited from Parsnip::Evaluator
static void construct (EvaluatorRef &evaluator, const ArgvCursor &cursor, CommandId id, Parser *parent_parser)
 Construct token handler from the token in a parsing definition.
 
- Protected Member Functions inherited from Parsnip::Evaluator
void setCommandId (CommandId id)
 Set the command ID in an evaluator.
 
- Static Protected Member Functions inherited from Parsnip::Evaluator
static void set_name (EvaluatorRef &target, const std::string &name)
 Assign a name by which to store values for value evaluators.
 
- Protected Attributes inherited from Parsnip::Evaluator
CommandId command_id {NoCommand}
 If this completes a command, the command ID.
 
std::string name
 If not empty, the name by which this value shall be accessed.
 

Detailed Description

An evaluator representing abrupt end of the command pattern.

Member Function Documentation

◆ Evaluator()

Parsnip::Evaluator::Evaluator ( Evaluator original)

Upgrade an evaluator.

The original must be a TerminatorEvaluator; other type should never be upgraded. Herein we initialize the new evaluator with the relevant bits.


The documentation for this class was generated from the following files: