fcml  1.1.3
Public Member Functions | List of all members
fcml::ParserContext Class Reference

Parser context. More...

#include <fcml_parser.hpp>

Public Member Functions

 ParserContext (fcml_ip ip=0)
 Creates a parser context instance for optional instruction pointer. More...
 
 ParserContext (SymbolTable *symbolTable, fcml_ip ip=0)
 Creates a parser context for given symbol table and optional instruction pointer. More...
 
const ParserConfig & getConfig () const
 Gets the parser configuration associated with the context. More...
 
ParserConfig & getConfig ()
 Gets the parser configuration associated with the context. More...
 
fcml_ip getIp () const
 Gets the instruction pointer. More...
 
void setIp (fcml_ip ip)
 Gets a new instruction pointer. More...
 
void incrementIP (fcml_ip ip)
 Increments instruction pointer by given number of bytes. More...
 
const SymbolTable * getSymbolTable () const
 Gets the symbol table associated with the context. More...
 
SymbolTable * getSymbolTable ()
 Gets the symbol table associated with the context. More...
 
void setSymbolTable (SymbolTable *symbolTable)
 Sets a symbol table for the instruction. More...
 

Detailed Description

Parser context.

Since
1.1.0

Constructor & Destructor Documentation

§ ParserContext() [1/2]

fcml::ParserContext::ParserContext ( fcml_ip  ip = 0)
inline

Creates a parser context instance for optional instruction pointer.

Parameters
ipThe instruction pointer.
Since
1.1.0

§ ParserContext() [2/2]

fcml::ParserContext::ParserContext ( SymbolTable *  symbolTable,
fcml_ip  ip = 0 
)
inline

Creates a parser context for given symbol table and optional instruction pointer.

Parameters
symbolTableThe symbol table.
ipThe instruction pointer.
Since
1.1.0

Member Function Documentation

§ getConfig() [1/2]

const ParserConfig& fcml::ParserContext::getConfig ( ) const
inline

Gets the parser configuration associated with the context.

Returns
The parser configuration associated with the context.
Since
1.1.0

§ getConfig() [2/2]

ParserConfig& fcml::ParserContext::getConfig ( )
inline

Gets the parser configuration associated with the context.

Returns
The parser configuration associated with the context.
Since
1.1.0

§ getIp()

fcml_ip fcml::ParserContext::getIp ( ) const
inline

Gets the instruction pointer.

Returns
The instruction pointer.
Since
1.1.0

§ getSymbolTable() [1/2]

const SymbolTable* fcml::ParserContext::getSymbolTable ( ) const
inline

Gets the symbol table associated with the context.

Returns
The symbol table.
Since
1.1.0

§ getSymbolTable() [2/2]

SymbolTable* fcml::ParserContext::getSymbolTable ( )
inline

Gets the symbol table associated with the context.

Returns
The symbol table.
Since
1.1.0

§ incrementIP()

void fcml::ParserContext::incrementIP ( fcml_ip  ip)
inline

Increments instruction pointer by given number of bytes.

Parameters
ipThe number of bytes the instruction pointer has to be incremented by.
Since
1.1.0

§ setIp()

void fcml::ParserContext::setIp ( fcml_ip  ip)
inline

Gets a new instruction pointer.

Parameters
ipThe new instruction pointer.
Since
1.1.0

§ setSymbolTable()

void fcml::ParserContext::setSymbolTable ( SymbolTable *  symbolTable)
inline

Sets a symbol table for the instruction.

Parameters
symbolTableThe symbol table for the parser context.
Since
1.1.0

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