The range keyword has been disabled for the parser rewrite of 5.17 so that the
authorthurston <thurston@052ea7fc-9027-0410-9066-f65837a77df0>
Fri, 26 Jan 2007 01:50:08 +0000 (01:50 +0000)
committerthurston <thurston@052ea7fc-9027-0410-9066-f65837a77df0>
Fri, 26 Jan 2007 01:50:08 +0000 (01:50 +0000)
ragel language matches 5.16 exactly. Can revert these changes to the test to
make diffing against the 5.16 output easier. Will enable again in the future.

git-svn-id: http://svn.complang.org/ragel/trunk@15 052ea7fc-9027-0410-9066-f65837a77df0

test/range.rl

index 34bc430..3d89b58 100644 (file)
@@ -11,7 +11,7 @@ struct range
 };
 
 %%{
-       machine range_fsm;
+       machine range;
        variable curstate fsm->cs;
 
        main := ( 'a' .. 'c' | 'c' .. 'e' | 'm' .. 'n' | 'a' .. 'z' ) '\n';
@@ -36,9 +36,9 @@ int range_finish( struct range *fsm )
 {
        %% write eof;
 
-       if ( fsm->cs == range_fsm_error )
+       if ( fsm->cs == range_error )
                return -1;
-       if ( fsm->cs >= range_fsm_first_final )
+       if ( fsm->cs >= range_first_final )
                return 1;
        return 0;
 }