language

some fools attempt at an interpreted language
Log | Files | Refs | README

test.c (348B)


      1 #include <stdio.h>
      2 
      3 #include "fh.h"
      4 #include "is.h"
      5 #include "ins_mdata.h"
      6 #include "ins_def.h"
      7 #include "var.h"
      8 #include "bc.h"
      9 
     10 int main(int argc, char** argv)
     11 {
     12 	init_mdata();
     13 	init_adata();
     14 
     15 	bc_t* bc = bc_init("bytecode");
     16 	
     17 	int i;
     18 	for (i = 0; i < bc->size; i++)
     19 	{
     20 		bc_print_op(&bc->heap[i]);
     21 		printf("\n");
     22 	}
     23 
     24 	bc_del(bc);
     25 	return 0;
     26 }