/[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.61 by eggert, Sat May 24 19:16:02 2003 UTC revision 1.62 by hilfinger, Tue Jun 10 02:44:58 2003 UTC
# Line 649  splice  (\\[ \f\t\v]*\n)* Line 649  splice  (\\[ \f\t\v]*\n)*
649    
650  %%  %%
651    
652    /* Keeps track of the maximum number of semantic values to the left of
653       a handle (those referenced by $0, $-1, etc.) are required by the
654       semantic actions of this grammar. */
655    int max_left_semantic_context = 0;
656    
657  /* Set *LOC and adjust scanner cursor to account for token TOKEN of  /* Set *LOC and adjust scanner cursor to account for token TOKEN of
658     size SIZE.  */     size SIZE.  */
659    
# Line 781  handle_action_dollar (char *text, locati Line 786  handle_action_dollar (char *text, locati
786        if (INT_MIN <= num && num <= rule_length && ! get_errno ())        if (INT_MIN <= num && num <= rule_length && ! get_errno ())
787          {          {
788            int n = num;            int n = num;
789              if (1-n > max_left_semantic_context)
790                max_left_semantic_context = 1-n;
791            if (!type_name && n > 0)            if (!type_name && n > 0)
792              type_name = symbol_list_n_type_name_get (current_rule, loc, n);              type_name = symbol_list_n_type_name_get (current_rule, loc, n);
793            if (!type_name && typed)            if (!type_name && typed)

Legend:
Removed from v.1.61  
changed lines
  Added in v.1.62

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