File: teststuff.c

package info (click to toggle)
pdp 1%3A0.14.1%2Bdarcs20180201-2
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, buster
  • size: 3,220 kB
  • sloc: ansic: 22,424; asm: 2,088; makefile: 532; perl: 145; sh: 108; cpp: 4
file content (29 lines) | stat: -rw-r--r-- 605 bytes parent folder | download | duplicates (6)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
/* some test stuff */

#if 0

    {
	t_pdp_list *l = pdp_list_from_cstring("(een 2 3. (1 1 1 1 1))", 0);
	t_pdp_list *s = pdp_list_from_cstring("(symbol int float (int int ...))", 0);
	//PDP_ASSERT(0);
	pdp_list_print(l);
	pdp_list_print(s);`
	post("%d", pdp_tree_check_syntax(l, s));
	exit(1);
    }
#endif

#if 0

    {
	char *c = "(test 1 2 (23 4)) ( 1 [asdflkj; las;dlfkj;a sdf]) (een (zes (ze)ven ())) [";
	while (*c){
	    t_pdp_list *l = pdp_list_from_cstring(c, &c);
	    if (l) pdp_list_print(l); 
	    else{
		post("parse error: remaining input: %s", c); break;
	    }
	}
	exit(1);
    }
#endif