Removed arg passing from frontend to backend functions.
[ragel.git] / test / include2.rl
blob68ab0079e88cdb17f942ba03f60094124aa6ff0f
1 /*
2  * @LANG: c
3  */
5 #include <stdio.h>
6 #include <string.h>
8 %%{
9         machine include_test_4;
11         action NonRef3 {printf(" nr3");}
13         a3 = 'a'@{printf(" a3");};
14         b3 = 'b'@{printf(" b3");};
16 }%%
18 %%{
19         machine include_test_1;
21         include "include1.rl";
23         include include_test_2 "include1.rl";
25         include include_test_4;
27         main := 
28                 a1 b1 @NonRef1 
29                 a2 b2 @NonRef2 
30                 a3 b3 @NonRef3
31                 0 @{fbreak;};
32 }%%
34 %% write data;
36 void test( char *p )
38         int cs;
39         %% write init;
40         %% write exec noend;
41         printf("\n");
44 int main()
46         test( "ababab" );
47         return 0;
50 #ifdef _____OUTPUT_____
51  a1 b1 nr1 a2 b2 nr2 a3 b3 nr3
52 #endif