Changeset 45


Ignore:
Timestamp:
12/06/09 22:22:41 (15 years ago)
Author:
mwajcht
Message:

Added ignoring of \r while parsing input. Grammar change: at least one production is required

Location:
cpp/f8-to-f1
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • cpp/f8-to-f1/conv_f8tof1_grammar.y

    r38 r45  
    5252}
    5353
    54 productions ::= production productions.
    55 productions ::= .
     54productions ::= production productions_others.
     55productions_others ::= production productions_others.
     56productions_others ::= .
    5657
    5758first_prod ::= prod_name(A) NEWLINE. {
  • cpp/f8-to-f1/conv_f8tof1_scanner.l

    r39 r45  
    3838                                        }
    3939
    40 [ \t]+                          { col += yyleng; }               /* ignore but count white space */
     40[ \t\r]+                                { col += yyleng; }               /* ignore but count white space */
    4141
    4242"="                                     { col += yyleng; yylval.strVal = yytext; return ASSIGN; }
Note: See TracChangeset for help on using the changeset viewer.