@@ -360,19 +360,18 @@ static void yy_fatal_error (yyconst char msg[] );
360
360
*yy_cp = '0円'; \
361
361
(yy_c_buf_p) = yy_cp;
362
362
363
- #define YY_NUM_RULES 4
364
- #define YY_END_OF_BUFFER 5
363
+ #define YY_NUM_RULES 3
364
+ #define YY_END_OF_BUFFER 4
365
365
/* This struct is not used in this scanner,
366
366
but its presence is necessary. */
367
367
struct yy_trans_info
368
368
{
369
369
flex_int32_t yy_verify ;
370
370
flex_int32_t yy_nxt ;
371
371
};
372
- static yyconst flex_int16_t yy_accept [20 ] =
372
+ static yyconst flex_int16_t yy_accept [10 ] =
373
373
{ 0 ,
374
- 0 , 0 , 5 , 4 , 4 , 4 , 0 , 0 , 0 , 0 ,
375
- 0 , 0 , 1 , 0 , 2 , 0 , 0 , 3 , 0
374
+ 0 , 0 , 4 , 3 , 1 , 2 , 1 , 2 , 0
376
375
} ;
377
376
378
377
static yyconst flex_int32_t yy_ec [256 ] =
@@ -381,16 +380,16 @@ static yyconst flex_int32_t yy_ec[256] =
381
380
1 , 1 , 1 , 1 , 1 , 1 , 1 , 1 , 1 , 1 ,
382
381
1 , 1 , 1 , 1 , 1 , 1 , 1 , 1 , 1 , 1 ,
383
382
1 , 1 , 1 , 1 , 1 , 1 , 1 , 1 , 1 , 1 ,
384
- 1 , 1 , 1 , 1 , 1 , 1 , 1 , 1 , 1 , 1 ,
385
- 1 , 1 , 1 , 1 , 1 , 1 , 1 , 1 , 1 , 1 ,
386
- 1 , 1 , 1 , 1 , 1 , 1 , 1 , 1 , 1 , 1 ,
387
- 1 , 1 , 1 , 1 , 1 , 1 , 1 , 1 , 1 , 1 ,
388
- 1 , 1 , 1 , 1 , 1 , 1 , 1 , 1 , 1 , 1 ,
389
- 1 , 1 , 1 , 1 , 1 , 1 , 2 , 1 , 1 , 3 ,
390
-
391
- 1 , 1 , 1 , 1 , 4 , 1 , 1 , 1 , 1 , 5 ,
392
- 6 , 7 , 1 , 8 , 9 , 10 , 1 , 1 , 11 , 1 ,
393
- 1 , 1 , 1 , 1 , 1 , 1 , 1 , 1 , 1 , 1 ,
383
+ 1 , 1 , 1 , 1 , 1 , 1 , 1 , 2 , 2 , 2 ,
384
+ 2 , 2 , 2 , 2 , 2 , 2 , 2 , 1 , 1 , 1 ,
385
+ 1 , 1 , 1 , 1 , 3 , 3 , 3 , 3 , 3 , 3 ,
386
+ 3 , 3 , 3 , 3 , 3 , 3 , 3 , 3 , 3 , 3 ,
387
+ 3 , 3 , 3 , 3 , 3 , 3 , 3 , 3 , 3 , 3 ,
388
+ 1 , 1 , 1 , 1 , 1 , 1 , 3 , 3 , 3 , 3 ,
389
+
390
+ 3 , 3 , 3 , 3 , 3 , 3 , 3 , 3 , 3 , 3 ,
391
+ 3 , 3 , 3 , 3 , 3 , 3 , 3 , 3 , 3 , 3 ,
392
+ 3 , 3 , 1 , 1 , 1 , 1 , 1 , 1 , 1 , 1 ,
394
393
1 , 1 , 1 , 1 , 1 , 1 , 1 , 1 , 1 , 1 ,
395
394
1 , 1 , 1 , 1 , 1 , 1 , 1 , 1 , 1 , 1 ,
396
395
1 , 1 , 1 , 1 , 1 , 1 , 1 , 1 , 1 , 1 ,
@@ -407,38 +406,33 @@ static yyconst flex_int32_t yy_ec[256] =
407
406
1 , 1 , 1 , 1 , 1
408
407
} ;
409
408
410
- static yyconst flex_int32_t yy_meta [12 ] =
409
+ static yyconst flex_int32_t yy_meta [4 ] =
411
410
{ 0 ,
412
- 1 , 1 , 1 , 1 , 1 , 1 , 1 , 1 , 1 , 1 ,
413
- 1
411
+ 1 , 2 , 3
414
412
} ;
415
413
416
- static yyconst flex_int16_t yy_base [21 ] =
414
+ static yyconst flex_int16_t yy_base [12 ] =
417
415
{ 0 ,
418
- 0 , 3 , 23 , 24 , 12 , 17 , 13 , 15 , 10 , 10 ,
419
- 13 , 3 , 24 , 8 , 24 , 0 , 0 , 24 , 24 , 0
416
+ 0 , 0 , 7 , 8 , 0 , 0 , 0 , 0 , 8 , 4 ,
417
+ 2
420
418
} ;
421
419
422
- static yyconst flex_int16_t yy_def [21 ] =
420
+ static yyconst flex_int16_t yy_def [12 ] =
423
421
{ 0 ,
424
- 20 , 20 , 19 , 19 , 19 , 19 , 19 , 19 , 19 , 19 ,
425
- 19 , 19 , 19 , 19 , 19 , 19 , 19 , 19 , 0 , 19
422
+ 9 , 1 , 9 , 9 , 10 , 11 , 10 , 11 , 0 , 9 ,
423
+ 9
426
424
} ;
427
425
428
- static yyconst flex_int16_t yy_nxt [36 ] =
426
+ static yyconst flex_int16_t yy_nxt [12 ] =
429
427
{ 0 ,
430
- 4 , 19 , 18 , 19 , 19 , 19 , 19 , 17 , 5 , 16 ,
431
- 6 , 5 , 15 , 6 , 9 , 14 , 13 , 12 , 10 , 11 ,
432
- 8 , 7 , 19 , 3 , 19 , 19 , 19 , 19 , 19 , 19 ,
433
- 19 , 19 , 19 , 19 , 19
428
+ 4 , 5 , 6 , 8 , 8 , 7 , 9 , 3 , 9 , 9 ,
429
+ 9
434
430
} ;
435
431
436
- static yyconst flex_int16_t yy_chk [36 ] =
432
+ static yyconst flex_int16_t yy_chk [12 ] =
437
433
{ 0 ,
438
- 20 , 0 , 17 , 0 , 0 , 0 , 0 , 16 , 1 , 14 ,
439
- 1 , 2 , 12 , 2 , 7 , 11 , 10 , 9 , 7 , 8 ,
440
- 6 , 5 , 3 , 19 , 19 , 19 , 19 , 19 , 19 , 19 ,
441
- 19 , 19 , 19 , 19 , 19
434
+ 1 , 1 , 1 , 11 , 11 , 10 , 3 , 9 , 9 , 9 ,
435
+ 9
442
436
} ;
443
437
444
438
static yy_state_type yy_last_accepting_state ;
@@ -455,10 +449,10 @@ int yy_flex_debug = 0;
455
449
#define YY_MORE_ADJ 0
456
450
#define YY_RESTORE_YY_MORE_OFFSET
457
451
char * yytext ;
458
- #line 1 "lex_start .lt"
459
- #line 2 "lex_start .lt"
460
- #include " stdio.h"
461
- #line 462 "lex.yy.c"
452
+ #line 1 "lex_regex .lt"
453
+ #line 2 "lex_regex .lt"
454
+ #include < stdio.h>
455
+ #line 456 "lex.yy.c"
462
456
463
457
#define INITIAL 0
464
458
@@ -640,9 +634,9 @@ YY_DECL
640
634
register char * yy_cp , * yy_bp ;
641
635
register int yy_act ;
642
636
643
- #line 5 "lex_start .lt"
637
+ #line 5 "lex_regex .lt"
644
638
645
- #line 646 "lex.yy.c"
639
+ #line 640 "lex.yy.c"
646
640
647
641
if ( !(yy_init ) )
648
642
{
@@ -695,13 +689,13 @@ YY_DECL
695
689
while ( yy_chk [yy_base [yy_current_state ] + yy_c ] != yy_current_state )
696
690
{
697
691
yy_current_state = (int ) yy_def [yy_current_state ];
698
- if ( yy_current_state >= 20 )
692
+ if ( yy_current_state >= 10 )
699
693
yy_c = yy_meta [(unsigned int ) yy_c ];
700
694
}
701
695
yy_current_state = yy_nxt [yy_base [yy_current_state ] + (unsigned int ) yy_c ];
702
696
++ yy_cp ;
703
697
}
704
- while ( yy_base [yy_current_state ] != 24 );
698
+ while ( yy_base [yy_current_state ] != 8 );
705
699
706
700
yy_find_action :
707
701
yy_act = yy_accept [yy_current_state ];
@@ -727,25 +721,20 @@ YY_DECL
727
721
728
722
case 1 :
729
723
YY_RULE_SETUP
730
- #line 6 "lex_start .lt"
731
- printf ("Stop command received " );
724
+ #line 6 "lex_regex .lt"
725
+ printf ("NUMBER\n " );
732
726
YY_BREAK
733
727
case 2 :
734
728
YY_RULE_SETUP
735
- #line 7 "lex_start .lt"
736
- printf ("Start command reveived " );
729
+ #line 7 "lex_regex .lt"
730
+ printf ("WORD\n " );
737
731
YY_BREAK
738
732
case 3 :
739
733
YY_RULE_SETUP
740
- #line 8 "lex_start.lt"
741
- printf ("Meeting you, my lord" );
742
- YY_BREAK
743
- case 4 :
744
- YY_RULE_SETUP
745
- #line 9 "lex_start.lt"
734
+ #line 8 "lex_regex.lt"
746
735
ECHO ;
747
736
YY_BREAK
748
- #line 749 "lex.yy.c"
737
+ #line 738 "lex.yy.c"
749
738
case YY_STATE_EOF (INITIAL ):
750
739
yyterminate ();
751
740
@@ -1037,7 +1026,7 @@ static int yy_get_next_buffer (void)
1037
1026
while ( yy_chk [yy_base [yy_current_state ] + yy_c ] != yy_current_state )
1038
1027
{
1039
1028
yy_current_state = (int ) yy_def [yy_current_state ];
1040
- if ( yy_current_state >= 20 )
1029
+ if ( yy_current_state >= 10 )
1041
1030
yy_c = yy_meta [(unsigned int ) yy_c ];
1042
1031
}
1043
1032
yy_current_state = yy_nxt [yy_base [yy_current_state ] + (unsigned int ) yy_c ];
@@ -1065,11 +1054,11 @@ static int yy_get_next_buffer (void)
1065
1054
while ( yy_chk [yy_base [yy_current_state ] + yy_c ] != yy_current_state )
1066
1055
{
1067
1056
yy_current_state = (int ) yy_def [yy_current_state ];
1068
- if ( yy_current_state >= 20 )
1057
+ if ( yy_current_state >= 10 )
1069
1058
yy_c = yy_meta [(unsigned int ) yy_c ];
1070
1059
}
1071
1060
yy_current_state = yy_nxt [yy_base [yy_current_state ] + (unsigned int ) yy_c ];
1072
- yy_is_jam = (yy_current_state == 19 );
1061
+ yy_is_jam = (yy_current_state == 9 );
1073
1062
1074
1063
return yy_is_jam ? 0 : yy_current_state ;
1075
1064
}
@@ -1742,7 +1731,6 @@ void yyfree (void * ptr )
1742
1731
1743
1732
#define YYTABLES_NAME "yytables"
1744
1733
1745
- #line 9 "lex_start.lt"
1746
-
1734
+ #line 8 "lex_regex.lt"
1747
1735
1748
1736
0 commit comments