File: include1.rl

package info (click to toggle)
ragel 6.6-1
  • links: PTS
  • area: main
  • in suites: squeeze
  • size: 4,248 kB
  • ctags: 4,467
  • sloc: cpp: 38,483; ansic: 5,143; sh: 1,561; makefile: 213; ruby: 189
file content (28 lines) | stat: -rw-r--r-- 363 bytes parent folder | download | duplicates (10)
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
/*
 * @LANG: c
 * @IGNORE: yes
 *
 * Provides definitions for include tests.
 */

%%{
	machine include_test_1;

	action A {printf(" a1");}
	action B {printf(" b1");}

	action NonRef1 {printf(" nr1");}

	a1 = 'a' @A;
	b1 = 'b' @B;
}%%

%%{
	machine include_test_2;

	action NonRef2 {printf(" nr2");}

	a2 = 'a' @{printf(" a2");};
	b2 = 'b' @{printf(" b2");};
}%%