update(add) packaging directory and spec file from OBSTF:Private, OBS
[external/ragel.git] / test / include2.rl
1 /*
2  * @LANG: c
3  */
4
5 #include <stdio.h>
6 #include <string.h>
7
8 %%{
9         machine include_test_4;
10
11         action NonRef3 {printf(" nr3");}
12
13         a3 = 'a'@{printf(" a3");};
14         b3 = 'b'@{printf(" b3");};
15
16 }%%
17
18 %%{
19         machine include_test_1;
20
21         include "include1.rl";
22
23         include include_test_2 "include1.rl";
24
25         include include_test_4;
26
27         main := 
28                 a1 b1 @NonRef1 
29                 a2 b2 @NonRef2 
30                 a3 b3 @NonRef3
31                 0 @{fbreak;};
32 }%%
33
34 %% write data;
35
36 void test( char *p )
37 {
38         int cs;
39         %% write init;
40         %% write exec noend;
41         printf("\n");
42 }
43
44 int main()
45 {
46         test( "ababab" );
47         return 0;
48 }
49
50 #ifdef _____OUTPUT_____
51  a1 b1 nr1 a2 b2 nr2 a3 b3 nr3
52 #endif