fcml  1.2.2
Public Member Functions | List of all members
fcml::Parser Class Reference

Parser wrapper. More...

#include <fcml_parser.hpp>

Inheritance diagram for fcml::Parser:
Inheritance graph
[legend]
Collaboration diagram for fcml::Parser:
Collaboration graph
[legend]

Public Member Functions

 Parser (const Dialect &dialect)
 Creates a parser instance for the given dialect. More...
 
fcml_ceh_error parse (ParserContext &ctx, const fcml_cstring &instruction, ParserResult &parserResult)
 Parses instruction given in the parameters. More...
 

Additional Inherited Members

- Protected Member Functions inherited from fcml::DialectAware
 DialectAware ()
 Default constructor. More...
 
virtual ~DialectAware ()
 Virtual destructor. More...
 
fcml_st_dialectextractDialect (const Dialect &dialect) const
 Extracts the native FCML dialect from the dialect object. More...
 
- Protected Member Functions inherited from fcml::SymbolTableAware
fcml_st_symbol_tableextractSymbolTable (SymbolTable &symbolTable)
 Extracts the native symbol table for the given symbol table wrapper. More...
 

Detailed Description

Parser wrapper.

Since
1.1.0

Constructor & Destructor Documentation

◆ Parser()

fcml::Parser::Parser ( const Dialect dialect)
inline

Creates a parser instance for the given dialect.

Parameters
dialectThe dialect instance.
Since
1.1.0

Member Function Documentation

◆ parse()

fcml_ceh_error fcml::Parser::parse ( ParserContext ctx,
const fcml_cstring instruction,
ParserResult parserResult 
)
inline

Parses instruction given in the parameters.

Parameters
ctxParser context.
instructionInstruction mnemonic.
[out]parserResultInstruction result.
Returns
Error code.
Exceptions
ParsingFailedExceptionParsing failed.
Since
1.1.0

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