|
fcml 1.3.0
|
#include <fcml_parser.hpp>
Public Member Functions | |
| ParserContext (fcml_ip ip=0) | |
| Creates a parser context instance for optional instruction pointer. | |
| ParserContext (SymbolTable *symbolTable, fcml_ip ip=0) | |
| Creates a parser context for given symbol table and optional instruction pointer. | |
| const ParserConfig & | getConfig () const |
| Gets the parser configuration associated with the context. | |
| ParserConfig & | getConfig () |
| Gets the parser configuration associated with the context. | |
| fcml_ip | getIp () const |
| Gets the instruction pointer. | |
| void | setIp (fcml_ip ip) |
| Gets a new instruction pointer. | |
| void | incrementIP (fcml_ip ip) |
| Increments instruction pointer by given number of bytes. | |
| const SymbolTable * | getSymbolTable () const |
| Gets the symbol table associated with the context. | |
| SymbolTable * | getSymbolTable () |
| Gets the symbol table associated with the context. | |
| void | setSymbolTable (SymbolTable *symbolTable) |
| Sets a symbol table for the instruction. | |
Parser context.
|
inline |
Creates a parser context instance for optional instruction pointer.
| ip | The instruction pointer. |
|
inline |
Creates a parser context for given symbol table and optional instruction pointer.
| symbolTable | The symbol table. |
| ip | The instruction pointer. |
|
inline |
Gets the parser configuration associated with the context.
|
inline |
Gets the parser configuration associated with the context.
|
inline |
Gets the instruction pointer.
|
inline |
Gets the symbol table associated with the context.
|
inline |
Gets the symbol table associated with the context.
|
inline |
Increments instruction pointer by given number of bytes.
| ip | The number of bytes the instruction pointer has to be incremented by. |
|
inline |
Gets a new instruction pointer.
| ip | The new instruction pointer. |
|
inline |
Sets a symbol table for the instruction.
| symbolTable | The symbol table for the parser context. |