This server is intended for use for Academic Classwork related Git repositories only. Projects/repositories will generally be removed after 6 months following close of the semester. Inactive repositories from previous semester are now being archived when no activity for 365 days. They are renamed and marked as 'archived'. After 90 days in that state they will be removed from the system completely.

Commit c37e8e63 authored by Hogan's avatar Hogan

Added type struct

parent 42bcb94f
......@@ -7,6 +7,26 @@
#include "SymbolTableEntry.h"
using namespace std;
#define UNDEFINED -1 // Type codes
#define FUNCTION 8
#define INT 1
#define STR 2
#define INT_OR_STR 3
#define BOOL 4
#define INT_OR_BOOL 5
#define STR_OR_BOOL 6
#define INT_OR_STR_OR_BOOL 7
typedef struct
int type;
// one of the above type codes
int numParams;
// numParams and returnType only applicable if type == FUNCTION
int returnType;
......@@ -21,10 +21,6 @@ bool findEntryInAnyScope(const string theName);
void printRule(const char*, const char*);
enum INT=2;
enum STR=4;
enum BOOL=8;
enum FUNCTION=16;
int yyerror(const char* s)
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment