/[bison]/bison/src/reader.c
ViewVC logotype

Diff of /bison/src/reader.c

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

revision 1.157 by akim, Sun Apr 7 17:42:31 2002 UTC revision 1.158 by akim, Sun Apr 7 17:42:49 2002 UTC
# Line 52  typedef struct symbol_list Line 52  typedef struct symbol_list
52  } symbol_list;  } symbol_list;
53    
54  int lineno;  int lineno;
55  static symbol_list *grammar;  static symbol_list *grammar = NULL;
56  static int start_flag;  static int start_flag = 0;
57  static bucket *startval;  static bucket *startval = NULL;
58    
59  /* Nonzero if components of semantic values are used, implying  /* Nonzero if components of semantic values are used, implying
60     they must be unions.  */     they must be unions.  */
61  static int value_components_used;  static int value_components_used;
62    
63  /* Nonzero if %union has been seen.  */  /* Nonzero if %union has been seen.  */
64  static int typed;  static int typed = 0;
65    
66  /* Incremented for each %left, %right or %nonassoc seen */  /* Incremented for each %left, %right or %nonassoc seen */
67  static int lastprec;  static int lastprec = 0;
68    
69  static bucket *errtoken = NULL;  bucket *errtoken = NULL;
70  static bucket *undeftoken = NULL;  bucket *undeftoken = NULL;
71  static bucket *eoftoken = NULL;  bucket *eoftoken = NULL;
72  static bucket *axiom = NULL;  bucket *axiom = NULL;
73    
74  static symbol_list *  static symbol_list *
75  symbol_list_new (bucket *sym)  symbol_list_new (bucket *sym)
# Line 1743  packgram (void) Line 1743  packgram (void)
1743  void  void
1744  reader (void)  reader (void)
1745  {  {
   start_flag = 0;  
   startval = NULL;              /* start symbol not specified yet. */  
   
   nsyms = 0;  
   nvars = 0;  
   nrules = 0;  
   nitems = 0;  
   
   typed = 0;  
   lastprec = 0;  
   
   semantic_parser = 0;  
   pure_parser = 0;  
   
   grammar = NULL;  
   
1746    lex_init ();    lex_init ();
1747    lineno = 1;    lineno = 1;
1748    

Legend:
Removed from v.1.157  
changed lines
  Added in v.1.158

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