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 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166
|
/* Generated by re2c */
#line 1 "directives/cond_format.re"
// re2c $INPUT -o $OUTPUT -c
#line 3 "directives/cond_format.re"
// types:re2c
#line 10 "directives/cond_format.c"
enum YYCONDTYPE {
yycC1,
yycC2,
yycC3
};
#line 6 "directives/cond_format.re"
// types:re2c format = "static const int @@{cond} = @@{num};\n";
#line 20 "directives/cond_format.c"
static const int yycC1 = 0;
static const int yycC2 = 1;
static const int yycC3 = 2;
#line 11 "directives/cond_format.re"
// types:re2c (all on one line) format = "\t@@,\n";
enum YYCONDTYPE {
#line 30 "directives/cond_format.c"
yycC1,
yycC2,
yycC3,
#line 14 "directives/cond_format.re"
};
// types:re2c (all on one line) format = "\t@@,\n"; separator = "\n";
enum YYCONDTYPE {
#line 40 "directives/cond_format.c"
yycC1,
yycC2,
yycC3,
#line 17 "directives/cond_format.re"
};
// types:re2c (multiple lines) format = "\t@@,\n";
enum YYCONDTYPE {
#line 49 "directives/cond_format.c"
yycC1,
yycC2,
yycC3,
#line 23 "directives/cond_format.re"
};
// types:re2c (multiple lines) format = "\t@@,\n"; separator = "\n";
enum YYCONDTYPE {
#line 60 "directives/cond_format.c"
yycC1,
yycC2,
yycC3,
#line 31 "directives/cond_format.re"
};
// types:re2c format = "static const int @@;\n";
#line 69 "directives/cond_format.c"
static const int yycC1; static const int yycC2; static const int yycC3
#line 38 "directives/cond_format.re"
// unnamed global block (conditions C1, C2)
#line 76 "directives/cond_format.c"
{
YYCTYPE yych;
Lstart:
switch (YYGETCONDITION()) {
case yycC1: goto yyc_C1;
case yycC2: goto yyc_C2;
}
/* *********************************** */
yyc_C1:
yych = *YYCURSOR;
switch (yych) {
case 'a': goto yy2;
default: goto yy1;
}
yy1:
++YYCURSOR;
#line 45 "directives/cond_format.re"
{ return; }
#line 95 "directives/cond_format.c"
yy2:
++YYCURSOR;
YYSETCONDITION(yycC2);
#line 43 "directives/cond_format.re"
{ goto Lstart; }
#line 101 "directives/cond_format.c"
/* *********************************** */
yyc_C2:
yych = *YYCURSOR;
switch (yych) {
case 'b': goto yy5;
default: goto yy4;
}
yy4:
++YYCURSOR;
#line 45 "directives/cond_format.re"
{ return; }
#line 113 "directives/cond_format.c"
yy5:
++YYCURSOR;
YYSETCONDITION(yycC1);
goto yyc_C1;
}
#line 46 "directives/cond_format.re"
// local block 'x' (conditions C1, C3)
#line 124 "directives/cond_format.c"
{
YYCTYPE yych;
switch (YYGETCONDITION()) {
case yycC1: goto Lx_C1;
case yycC3: goto Lx_C3;
}
/* *********************************** */
Lx_C1:
yych = *YYCURSOR;
switch (yych) {
case 'a': goto yy8;
default: goto yy7;
}
yy7:
++YYCURSOR;
#line 53 "directives/cond_format.re"
{ return x; }
#line 142 "directives/cond_format.c"
yy8:
++YYCURSOR;
YYSETCONDITION(yycC3);
#line 51 "directives/cond_format.re"
{ goto Lx_C3; }
#line 148 "directives/cond_format.c"
/* *********************************** */
Lx_C3:
yych = *YYCURSOR;
switch (yych) {
case 'b': goto yy11;
default: goto yy10;
}
yy10:
++YYCURSOR;
#line 53 "directives/cond_format.re"
{ return x; }
#line 160 "directives/cond_format.c"
yy11:
++YYCURSOR;
YYSETCONDITION(yycC1);
goto Lx_C1;
}
#line 54 "directives/cond_format.re"
|