[BACK]Return to lalr.c CVS log [TXT][DIR] Up to [local] / src / usr.bin / yacc

Diff for /src/usr.bin/yacc/lalr.c between version 1.7 and 1.8

version 1.7, 2003/06/03 02:56:24 version 1.8, 2003/06/19 16:34:53
Line 92 
Line 92 
 static int top;  static int top;
   
 void  void
 lalr()  lalr(void)
 {  {
     tokensetsize = WORDSIZE(ntokens);      tokensetsize = WORDSIZE(ntokens);
   
Line 111 
Line 111 
   
   
 void  void
 set_state_table()  set_state_table(void)
 {  {
     core *sp;      core *sp;
   
Line 122 
Line 122 
   
   
 void  void
 set_accessing_symbol()  set_accessing_symbol(void)
 {  {
     core *sp;      core *sp;
   
Line 133 
Line 133 
   
   
 void  void
 set_shift_table()  set_shift_table(void)
 {  {
     shifts *sp;      shifts *sp;
   
Line 144 
Line 144 
   
   
 void  void
 set_reduction_table()  set_reduction_table(void)
 {  {
     reductions *rp;      reductions *rp;
   
Line 155 
Line 155 
   
   
 void  void
 set_maxrhs()  set_maxrhs(void)
 {  {
   short *itemp;    short *itemp;
   short *item_end;    short *item_end;
Line 183 
Line 183 
   
   
 void  void
 initialize_LA()  initialize_LA(void)
 {  {
   int i, j, k;    int i, j, k;
   reductions *rp;    reductions *rp;
Line 220 
Line 220 
 }  }
   
 void  void
 set_goto_map()  set_goto_map(void)
 {  {
   shifts *sp;    shifts *sp;
   int i;    int i;
Line 290 
Line 290 
 /*  Map_goto maps a state/symbol pair into its numeric representation.  */  /*  Map_goto maps a state/symbol pair into its numeric representation.  */
   
 int  int
 map_goto(state, symbol)  map_goto(int state, int symbol)
 int state;  
 int symbol;  
 {  {
     int high;      int high;
     int low;      int low;
Line 318 
Line 316 
   
   
 void  void
 initialize_F()  initialize_F(void)
 {  {
   int i;    int i;
   int j;    int j;
Line 395 
Line 393 
   
   
 void  void
 build_relations()  build_relations(void)
 {  {
   int i;    int i;
   int j;    int j;
Line 487 
Line 485 
 }  }
   
 void  void
 add_lookback_edge(stateno, ruleno, gotono)  add_lookback_edge(int stateno, int ruleno, int gotono)
 int stateno, ruleno, gotono;  
 {  {
     int i, k;      int i, k;
     int found;      int found;
Line 515 
Line 512 
   
   
 short **  short **
 transpose(R, n)  transpose(short **R, int n)
 short **R;  
 int n;  
 {  {
   short **new_R;    short **new_R;
   short **temp_R;    short **temp_R;
Line 572 
Line 567 
   
   
 void  void
 compute_FOLLOWS()  compute_FOLLOWS(void)
 {  {
   digraph(includes);    digraph(includes);
 }  }
   
 void  void
 compute_lookaheads()  compute_lookaheads(void)
 {  {
   int i, n;    int i, n;
   unsigned *fp1, *fp2, *fp3;    unsigned *fp1, *fp2, *fp3;
Line 612 
Line 607 
 }  }
   
 void  void
 digraph(relation)  digraph(short **relation)
 short **relation;  
 {  {
   int i;    int i;
   
Line 639 
Line 633 
   
   
 void  void
 traverse(i)  traverse(int i)
 int i;  
 {  {
   unsigned *fp1;    unsigned *fp1;
   unsigned *fp2;    unsigned *fp2;

Legend:
Removed from v.1.7  
changed lines
  Added in v.1.8