21 lines
373 B
C
21 lines
373 B
C
|
#ifndef VM_TRANSLATOR
|
||
|
#define VM_TRANSLATOR
|
||
|
#include "vm-lines.h"
|
||
|
|
||
|
typedef struct {
|
||
|
char* classname;
|
||
|
int classnamelen;
|
||
|
LINE* start;
|
||
|
LINE* currln;
|
||
|
STRINGLIST* garbage;
|
||
|
int cmpind;
|
||
|
int retind;
|
||
|
} VMTRANSLATOR;
|
||
|
|
||
|
|
||
|
STRINGLIST* translatevm(VMTRANSLATOR* t);
|
||
|
VMTRANSLATOR* mkvmtranslator(char* classname, LINEBLOCK* vmlines);
|
||
|
void freevmtranslator(VMTRANSLATOR* t);
|
||
|
|
||
|
#endif
|