fcml 1.2.2
Loading...
Searching...
No Matches
Public Member Functions | Protected Member Functions | Friends | List of all members
fcml::ParserResult Class Reference

Parser result. More...

#include <fcml_parser.hpp>

Public Member Functions

 ParserResult ()
 Creates an empty parser result.
 
const ErrorContainergetErrors () const
 Gets errors container with parsing errors.
 
const InstructiongetInstruction () const
 Gets the parsed instruction.
 
const Nullable< Symbol > & getSymbol () const
 Gets declared symbol is there is any.
 
void clean ()
 Cleans the parser result.
 

Protected Member Functions

void setErrors (const ErrorContainer &errors)
 Sets error container for the context.
 
void setInstruction (const Instruction &instruction)
 Sets an instruction for the container.
 
void setSymbol (const Nullable< Symbol > &symbol)
 Sets symbol.
 

Friends

class Parser
 

Detailed Description

Parser result.

Since
1.1.0

Constructor & Destructor Documentation

◆ ParserResult()

fcml::ParserResult::ParserResult ( )
inline

Creates an empty parser result.

Since
1.1.0

Member Function Documentation

◆ clean()

void fcml::ParserResult::clean ( )
inline

Cleans the parser result.

Since
1.1.0

◆ getErrors()

const ErrorContainer & fcml::ParserResult::getErrors ( ) const
inline

Gets errors container with parsing errors.

Returns
Errors container.
Since
1.1.0

◆ getInstruction()

const Instruction & fcml::ParserResult::getInstruction ( ) const
inline

Gets the parsed instruction.

Returns
The parsed instruction.
Since
1.1.0

◆ getSymbol()

const Nullable< Symbol > & fcml::ParserResult::getSymbol ( ) const
inline

Gets declared symbol is there is any.

Returns
Gets symbol if there is any.
Since
1.1.0

◆ setErrors()

void fcml::ParserResult::setErrors ( const ErrorContainer errors)
inlineprotected

Sets error container for the context.

Parameters
errorsA new error container.
Since
1.1.0

◆ setInstruction()

void fcml::ParserResult::setInstruction ( const Instruction instruction)
inlineprotected

Sets an instruction for the container.

Parameters
instructionThe instruction.
Since
1.1.0

◆ setSymbol()

void fcml::ParserResult::setSymbol ( const Nullable< Symbol > &  symbol)
inlineprotected

Sets symbol.

Parameters
symbolThe symbol.
Since
1.1.0

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