C:/Users/Dennis/src/lang/russell.orig/src/pass1/scanner/restab.c

Go to the documentation of this file.
00001 #
00002 /*
00003  * Russell
00004  *
00005  * tables of reserved words
00006  */
00007 
00008 #include      "../parser/y.tab.h"
00009 
00010 int residtab[] = {
00011     (int)"cand",         CAND,
00012     (int)"characters",   CHARACTERS,
00013     (int)"constants",    CONSTANTS,
00014     (int)"cor",          COR,
00015     (int)"do",           DO,
00016     (int)"else",         ELSE,
00017     (int)"elsif",        ELSIF,
00018     (int)"enum",         ENUM,
00019     (int)"export",       EXPORT,
00020     (int)"extend",       EXTEND,
00021     (int)"extern",       EXTERN,
00022     (int)"fi",           FI,
00023     (int)"field",        FIELD,
00024     (int)"func",         FUNC,
00025     (int)"hide",         HIDE,
00026     (int)"if",           IF,
00027     (int)"in",           IN,
00028     (int)"let",          LET,
00029     (int)"ni",           NI,
00030     (int)"od",           OD,
00031     (int)"prod",         PROD,
00032     (int)"readonly",     READONLY,
00033     (int)"record",       RECORD,
00034     (int)"signature",    SIGNATURE,
00035     (int)"then",         THEN,
00036     (int)"type",         TYPE,
00037     (int)"union",        UNION,
00038     (int)"use",          USE,
00039     (int)"val",          VAL,
00040     (int)"var",          VAR,
00041     (int)"with",         WITH,
00042 };
00043 
00044 int nresids = (sizeof residtab) / (2 * (sizeof (int)));  /* sizeof( struct restab ) */
00045 
00046 
00047 int resoptab[] = {
00048     (int)":",            COLON,
00049     (int)"<<",           LEFT_ANGLE_BRACKET,
00050     (int)"==",           EQUALS_EQUALS,
00051     (int)"===",          EQUALS_EQUALS_EQUALS,
00052     (int)"==>",          RIGHT_ARROW,
00053     (int)">>",           RIGHT_ANGLE_BRACKET,
00054 };
00055 
00056 int nresops = (sizeof resoptab) / (2 * (sizeof (int)));  /* sizeof( struct restab ) */

Generated on Fri Jan 25 10:39:46 2008 for russell by  doxygen 1.5.4