/[bison]/bison/src/scan-gram.l
ViewVC logotype

Diff of /bison/src/scan-gram.l

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.57 by eggert, Sun Mar 2 06:55:15 2003 UTC revision 1.58 by eggert, Thu Mar 13 07:07:17 2003 UTC
# Line 43  Line 43 
43        scanner_cursor.file = current_file;               \        scanner_cursor.file = current_file;               \
44        scanner_cursor.line = 1;                          \        scanner_cursor.line = 1;                          \
45        scanner_cursor.column = 1;                        \        scanner_cursor.column = 1;                        \
46          code_start = scanner_cursor;                      \
47      }                                                   \      }                                                   \
48    while (0)    while (0)
49    
# Line 279  splice  (\\[ \f\t\v]*\n)* Line 280  splice  (\\[ \f\t\v]*\n)*
280    . {    . {
281      complain_at (*loc, _("invalid character: %s"), quote (yytext));      complain_at (*loc, _("invalid character: %s"), quote (yytext));
282    }    }
283    
284      <<EOF>> {
285        loc->start = loc->end = scanner_cursor;
286        yyterminate ();
287      }
288  }  }
289    
290    
# Line 529  splice  (\\[ \f\t\v]*\n)* Line 535  splice  (\\[ \f\t\v]*\n)*
535          return token_type;          return token_type;
536        }        }
537    }    }
538    
539      <<EOF>>  unexpected_end_of_file (scanner_cursor, "{}");
540  }  }
541    
542    

Legend:
Removed from v.1.57  
changed lines
  Added in v.1.58

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26