Diff for /parser3/src/main/compile.y between versions 1.204.2.8.2.10 and 1.204.2.8.2.12

version 1.204.2.8.2.10, 2003/04/03 06:16:05 version 1.204.2.8.2.12, 2003/04/03 12:25:33
Line 45 Line 45
   
 // forwards  // forwards
   
 static int real_yyerror(Parse_control *pc, char *s);  static int real_yyerror(Parse_control* pc, char* s);
 static void yyprint(FILE *file, int type, YYSTYPE value);  static void yyprint(FILE* file, int type, YYSTYPE value);
 static int yylex(YYSTYPE *lvalp, void *pc);  static int yylex(YYSTYPE* lvalp, void* pc);
   
   
 // local convinient inplace typecast & var  // local convinient inplace typecast & var
Line 121  static int yylex(YYSTYPE *lvalp, void *p Line 121  static int yylex(YYSTYPE *lvalp, void *p
 %%  %%
 all:  all:
         one_big_piece {          one_big_piece {
         Method& method=*new Method(/*main_method_name, */Method::CT_ANY,          Method& method=*new Method(Method::CT_ANY,
                 0, 0, /*min, max numbered_params_count*/                  0, 0, /*min, max numbered_params_count*/
                 0/*param_names*/, 0/*local_names*/,                   0/*param_names*/, 0/*local_names*/, 
                 $1/*parser_code*/, 0/*native_code*/);                  $1/*parser_code*/, 0/*native_code*/);
         PC.cclass->add_method(main_method_name, method);          PC.cclass->add_method(PC.alias_method(main_method_name), method);
 }  }
 |       methods;  |       methods;
   
Line 237  code_method: '@' STRING bracketed_maybe_ Line 237  code_method: '@' STRING bracketed_maybe_
                 0, 0/*min,max numbered_params_count*/,                   0, 0/*min,max numbered_params_count*/, 
                 params_names, locals_names,                   params_names, locals_names, 
                 $7, 0);                  $7, 0);
         PC.cclass->add_method(name, method);          PC.cclass->add_method(PC.alias_method(name), method);
 };  };
   
 maybe_bracketed_strings: empty | bracketed_maybe_strings;  maybe_bracketed_strings: empty | bracketed_maybe_strings;
Line 614  empty: /* empty */ { $$=N() }; Line 614  empty: /* empty */ { $$=N() };
                 4:[^({]=pop                  4:[^({]=pop
 */  */
   
 inline ungetc(Parse_control& pc, uint last_line_end_col) {  inline void ungetc(Parse_control& pc, uint last_line_end_col) {
         pc.source--;          pc.source--;
         if(pc.pos.col==0) {          if(pc.pos.col==0) {
                 --pc.pos.line; pc.pos.col=last_line_end_col;                  --pc.pos.line; pc.pos.col=last_line_end_col;

Removed from v.1.204.2.8.2.10  
changed lines
  Added in v.1.204.2.8.2.12


E-mail: