C++ implementation of bytecode compiler and VM emulator for desktop. More...
#include "ByteCompiler.hpp"
Macros | |
| #define | YYERR "\n\n"<<yylineno<<":"<<msg<<"["<<yytext<<"]\n\n" |
Functions | |
| void | yyerror (std::string msg) |
| syntax error callback More... | |
| int | main () |
| program entry point, do nothing, just run ByteCompiler only | |
| void | save (char *filename) |
| save compiled vocabular memory to file More... | |
| void | Lcompile (std::string *name) |
| compile label | |
| void | Ldefine (std::string *name) |
| define label | |
Variables | |
| std::map< std::string, CELL > | label |
| code labels table | |
|
std::map< std::string, std::vector< CELL > > | forward |
| table of forward references | |
C++ implementation of bytecode compiler and VM emulator for desktop.
| void save | ( | char * | filename | ) |
save compiled vocabular memory to file
| [in] | filename | filename (ignored in embedded without file system support) |
| void yyerror | ( | std::string | message | ) |
syntax error callback
| [in] | message | string with message text generated in lexer or parser |
1.8.8