9 #ifndef _H_ByteCompiler
10 #define _H_ByteCompiler
23 extern std::map<std::string,CELL>
label;
26 extern std::map<std::string,std::vector<CELL>>
forward;
29 extern void Lcompile(std::string *name);
32 extern void Ldefine(std::string *name);
48 #define cmd0(OP) { yylval.cmd0 = OP; return CMD0; }
49 #define cmd1(OP) { yylval.cmd1 = OP; return CMD1; }
56 extern void yyerror(std::string message);
58 #include "ByteCompiler.parser.hpp"
60 #endif // _H_ByteCompiler
int yyparse()
syntax parser interface
Definition: ByteCompiler.parser.cpp:976
void yyerror(std::string message)
syntax error callback
Definition: ByteCompiler.cpp:7
std::map< std::string, std::vector< CELL > > forward
table of forward references
Definition: ByteCompiler.cpp:22
int yylex()
lexer interface
char * yytext
text part matched by lexer regexp
Definition: ByteCompiler.lexer.cpp:509
void Ldefine(std::string *name)
define label
Definition: ByteCompiler.cpp:37
void Lcompile(std::string *name)
compile label
Definition: ByteCompiler.cpp:24
global Virtual Machine headers (ANSI C'89 code shared between byte compiler & embedded) ...
int yylineno
current line number
Definition: ByteCompiler.lexer.cpp:375
std::map< std::string, CELL > label
code labels table
Definition: ByteCompiler.cpp:21