home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / pascal.zip / symtable / symtable.h < prev    next >
Text File  |  1995-10-29  |  2KB  |  78 lines

  1. /*
  2.  *        C . A . P .   S Y M B O L   T A B L E
  3.  *
  4.  *        G L O B A L   I N C L U D E   F I L E
  5.  *
  6.  *        Stéphane Charette @ C.A.P. Services
  7.  *
  8.  *        Last modified:  Stephane Charette, 1995 October 29
  9.  *
  10.  *****************************************************************************
  11.  *
  12.  *        Project:    BILL
  13.  *        Group:    symbol table
  14.  *        File:        symtable\symtable.h
  15.  *
  16.  *        This file contains all of the global definitions used with the symbol
  17.  *        table portion of the interpreter BILL.
  18.  */
  19.  
  20.  
  21.  
  22. #ifndef _SYMTABLE_H_GLOBAL
  23.  
  24.     #define _SYMTABLE_H_GLOBAL
  25.  
  26.     /*
  27.      *        Includes
  28.      */
  29.         #include "..\global\global.h"
  30.         #include "..\symtable\symt_ids.h"
  31.  
  32.  
  33.  
  34.     /*
  35.      *        Defines
  36.      */
  37.         #define SYMTABLE_MAX_VAR_LEN    31        // maximum length allowed for variable names
  38.         #define SYMTABLE_MAX_ENTRY        200    // maximum number of entries allowed in the symbol table
  39.  
  40.  
  41.  
  42.     /*
  43.      *        Types & structures
  44.      */
  45.  
  46.  
  47.  
  48.     /*
  49.      *        Macros
  50.      */
  51.  
  52.  
  53.  
  54.     /*
  55.      *        Global (external) variables
  56.      */
  57.  
  58.  
  59.  
  60.     /*
  61.      *        Global (external) prototyping
  62.      */
  63.         ERR InitSymTable( void );                                        // initialize the symbol table
  64.         ERR ResetSymTable( void );                                        // reset the symbol table
  65.         ERR NewTableEntry( SHORT *index, UCHAR name[] );        // add a new table entry to the symbol table
  66.         ERR GetTableEntry( SHORT *index, UCHAR name[] );        // get the index of a table entry
  67.         ERR TableMakeConst( UCHAR name[] );                            // make the specified entry a constant
  68.         ERR TableIsConst( BOOL *isconst, UCHAR name[] );        // check to see if the entry is a constant
  69.         #if( _SYMTABLE_DEBUG )
  70.         ERR InitSymTableDebug( BOOL screen, BOOL source );        // initialize lexical debug module
  71.         ERR ResetSymTableDebug( void );                                // reset the lexical debug module
  72.         #endif
  73.  
  74.  
  75.  
  76. #endif
  77.  
  78.