stage1_2/stage1_2_priv.hh
changeset 175 dadda1b5401e
parent 136 32bd7ef40897
child 177 697562a5da7c
equal deleted inserted replaced
174:f648065fb66e 175:dadda1b5401e
   163 /* A symbol table to store the declared variables of
   163 /* A symbol table to store the declared variables of
   164  * the function currently being parsed...
   164  * the function currently being parsed...
   165  */
   165  */
   166 extern symtable_c<int, BOGUS_TOKEN_ID> variable_name_symtable;
   166 extern symtable_c<int, BOGUS_TOKEN_ID> variable_name_symtable;
   167 
   167 
       
   168 /* A symbol table to store the declared direct variables of
       
   169  * the function currently being parsed...
       
   170  */
       
   171 extern symtable_c<int, BOGUS_TOKEN_ID> direct_variable_symtable;
       
   172 
   168 /* Function only called from within flex!
   173 /* Function only called from within flex!
   169  *
   174  *
   170  * search for a symbol in either of the two symbol tables
   175  * search for a symbol in either of the two symbol tables
   171  * declared above, and return the token id of the first
   176  * declared above, and return the token id of the first
   172  * symbol found.
   177  * symbol found.
   173  * Searches first in the variables, and only if not found
   178  * Searches first in the variables, and only if not found
   174  * does it continue searching in the library elements
   179  * does it continue searching in the library elements
   175  */
   180  */
   176 int get_identifier_token(const char *identifier_str);
   181 int get_identifier_token(const char *identifier_str);
   177 
   182 
       
   183 /* Function only called from within flex!
       
   184  *
       
   185  * search for a symbol in direct variables symbol table
       
   186  * declared above, and return the token id of the first
       
   187  * symbol found.
       
   188  */
       
   189 int get_direct_variable_token(const char *direct_variable_str);
   178 
   190 
   179 
   191 
   180 /************************/
   192 /************************/
   181 /* Utility Functions... */
   193 /* Utility Functions... */
   182 /************************/
   194 /************************/