OLD | NEW |
1 GT2 patch as found in ragel-6-gt2 branch. | 1 GT2 patch as found in ragel-6-gt2 branch. |
2 | 2 |
3 More info: http://www.complang.org/pipermail/ragel-users/2012-May/002831.html | 3 More info: http://www.complang.org/pipermail/ragel-users/2012-May/002831.html |
4 | 4 |
5 --- ragel/cdgoto.cpp | 5 --- ragel/cdgoto.cpp |
6 +++ ragel/cdgoto.cpp | 6 +++ ragel/cdgoto.cpp |
7 @@ -34,6 +34,11 @@ | 7 @@ -34,6 +34,11 @@ |
8 return out; | 8 return out; |
9 } | 9 } |
10 | 10 |
(...skipping 240 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
251 " -P<N> N-Way Split really fast goto-driven FSM\n" | 251 " -P<N> N-Way Split really fast goto-driven FSM\n" |
252 ; | 252 ; |
253 | 253 |
254 @@ -407,7 +409,10 @@ | 254 @@ -407,7 +409,10 @@ |
255 codeStyle = GenFGoto; | 255 codeStyle = GenFGoto; |
256 else if ( pc.paramArg[0] == '2' ) | 256 else if ( pc.paramArg[0] == '2' ) |
257 codeStyle = GenIpGoto; | 257 codeStyle = GenIpGoto; |
258 - else { | 258 - else { |
259 + else if ( pc.paramArg[0] == 'T' && pc.paramArg[1
] == '2' ) { | 259 + else if ( pc.paramArg[0] == 'T' && pc.paramArg[1
] == '2' ) { |
260 + codeStyle = GenIpGoto; | 260 + codeStyle = GenIpGoto; |
261 +» » » » » maxTransitions = 32; | 261 +» » » » » maxTransitions = 16; |
262 + } else { | 262 + } else { |
263 error() << "-G" << pc.paramArg[0] << | 263 error() << "-G" << pc.paramArg[0] << |
264 " is an invalid argument
" << endl; | 264 " is an invalid argument
" << endl; |
265 exit(1); | 265 exit(1); |
266 --- ragel/ragel.h | 266 --- ragel/ragel.h |
267 +++ ragel/ragel.h | 267 +++ ragel/ragel.h |
268 @@ -109,6 +109,8 @@ | 268 @@ -109,6 +109,8 @@ |
269 extern int numSplitPartitions; | 269 extern int numSplitPartitions; |
270 extern bool noLineDirectives; | 270 extern bool noLineDirectives; |
271 | 271 |
272 +extern long maxTransitions; | 272 +extern long maxTransitions; |
273 + | 273 + |
274 std::ostream &error(); | 274 std::ostream &error(); |
275 | 275 |
276 /* Target language and output style. */ | 276 /* Target language and output style. */ |
OLD | NEW |