Main Page   Alphabetical List   Compound List   File List   Compound Members   File Members  

lslinit.c File Reference

#include "lclintMacros.nf"
#include "llbasic.h"
#include "signature.h"
#include "signature2.h"
#include "scan.h"
#include "scanline.h"
#include "tokentable.h"
#include "syntable.h"
#include "lslinit.h"
#include "shift.h"

Go to the source code of this file.

Defines

#define LTRACE(rule)

Functions

void LSLProcessInitFile (void)
void LSLProcessInitFileInit (void)


Define Documentation

#define LTRACE( rule )
 

Definition at line 47 of file lslinit.c.


Function Documentation

void LSLProcessInitFile ( void )
 

Definition at line 149 of file lslinit.c.

00150 {
00151   InitFile ();
00152 }

void LSLProcessInitFileInit ( void )
 

Definition at line 1496 of file lslinit.c.

01497 {
01498   int i;
01499 
01500   LSLGenInit (TRUE);            /* parsing LSLinit not LCLinit */
01501 
01502   /*
01503   ** Insert the init file keywords into the token table as undefined        
01504   ** SIMPLEIDs.  They are defined as simpleIds since they must be treated 
01505   ** that way if they do not appear as the first token on a line, and       
01506   ** they must be treated that way for the actual LSL parsing. Save the   
01507   ** tokens so can recognize as init file keywords when necessary.       
01508   */
01509 
01510   endCommentCharToken = insertSimpleToken ("endCommentChar");
01511   idCharToken = insertSimpleToken ("idChar");                        
01512   opCharToken = insertSimpleToken ("opChar");                        
01513   extensionCharToken = insertSimpleToken ("extensionChar");    
01514   singleCharToken = insertSimpleToken ("singleChar");   
01515   whiteCharToken = insertSimpleToken ("whiteChar");
01516 
01517   quantifierSymToken = insertSimpleToken ("quantifierSym");
01518   logicalOpToken = insertSimpleToken ("logicalOp");
01519   eqOpToken = insertSimpleToken ("eqOp");                          
01520   equationSymToken = insertSimpleToken ("equationSym");
01521   eqSepSymToken = insertSimpleToken ("eqSepSym");                              
01522   selectSymToken = insertSimpleToken ("selectSym");
01523   openSymToken = insertSimpleToken ("openSym");                       
01524   sepSymToken = insertSimpleToken ("sepSym");                        
01525   closeSymToken = insertSimpleToken ("closeSym");                              
01526   simpleIdToken = insertSimpleToken ("simpleId");                              
01527   mapSymToken = insertSimpleToken ("mapSym");                        
01528   markerSymToken = insertSimpleToken ("markerSym");
01529   commentSymToken = insertSimpleToken ("commentSym"); 
01530   synonymToken = insertSimpleToken ("synonym");                       
01531 
01532   for (i = 0; i <= LASTCHAR; i++)
01533     {
01534       defineSingleChar[i] = FALSE;
01535     }
01536   
01537   /*
01538   ** Record the current extension character so can redefine back to         
01539   ** singleChar if a new extension character is redefined.                  
01540   */
01541 
01542   currentExtensionChar = (charCode) CHAREXTENDER;
01543 
01544   LSLReportEolTokens (TRUE);
01545   ltoken_free (nextToken);
01546   nextToken = LSLScanNextToken ();             
01547 }


Generated at Fri Nov 3 18:58:03 2000 for LCLint by doxygen1.2.3 written by Dimitri van Heesch, © 1997-2000