main.c 599 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"
Laszlo Domoszlai's avatar
Laszlo Domoszlai committed
7
8
9
10
11
#include "parse.h"

int main()
{   
	init_mem();
12
13
	init_desc();
	
Laszlo Domoszlai's avatar
Laszlo Domoszlai committed
14
15
	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";
		 
16
	int res = parse(&stream, strlen(stream));
17
18
		
	printf("%d", res);	
19
		
Laszlo Domoszlai's avatar
Laszlo Domoszlai committed
20
21
22
23
//   add_fun("jimbo", (FunFlags*) "artist");
//   char *tval = (char*) find_fun("jimbo");
//   printf ("shortcut tval for jimbo = %s\n", tval);   
}