main.c 627 Bytes
Newer Older
Laszlo Domoszlai's avatar
Laszlo Domoszlai committed
1
2

#include <stdio.h>
3
#include <string.h>
Laszlo Domoszlai's avatar
Laszlo Domoszlai committed
4
5

#include "mem.h"
6
#include "desc.h"
7
#include "prim.h"
Laszlo Domoszlai's avatar
Laszlo Domoszlai committed
8
9
10
11
12
#include "parse.h"

int main()
{   
	init_mem();
13
	init_desc();
14
	init_prim();
15
	
Laszlo Domoszlai's avatar
Laszlo Domoszlai committed
16
17
	char* stream = "40 R10 example._R2 1 9 example.a9 example.b37 F12 example.g_482 3 AF3 add2 VA0 VA1 39 C9 example.fAF12 example.g_482 LI1 LI2 55 F13 example.Start0 0 AF10 example._R2 LI1 VF9 example.f29 F4 main0 0 VF13 example.Start";
		 
18
	int res = parse(&stream, strlen(stream));
19
20
		
	printf("%d", res);	
21
		
Laszlo Domoszlai's avatar
Laszlo Domoszlai committed
22
//   add_fun("jimbo", (Desc*) "artist");
Laszlo Domoszlai's avatar
Laszlo Domoszlai committed
23
24
25
//   char *tval = (char*) find_fun("jimbo");
//   printf ("shortcut tval for jimbo = %s\n", tval);   
}