updated lex to return the right values to the tokens (mostly table entries)
This commit is contained in:
@ -47,28 +47,28 @@
|
||||
|
||||
%union {
|
||||
int integ;
|
||||
TableNode *tn;
|
||||
char *words;
|
||||
char* words;
|
||||
TableNode* tn;
|
||||
}
|
||||
|
||||
%type <integ> idlist
|
||||
%type <tn> assignable
|
||||
%type <tn> expression
|
||||
%type <t > constant
|
||||
%type <tn> constant
|
||||
%type <tn> id_or_types
|
||||
%type <tn> types
|
||||
%token <words> ID 101
|
||||
%token <words> T_INTEGER 201
|
||||
%token <words> T_ADDRESS 202
|
||||
%token <words> T_BOOLEAN 203
|
||||
%token <words> T_CHARACTER 204
|
||||
%token <words> T_STRING 205
|
||||
%token <tn> ID 101
|
||||
%token <tn> T_INTEGER 201
|
||||
%token <tn> T_ADDRESS 202
|
||||
%token <tn> T_BOOLEAN 203
|
||||
%token <tn> T_CHARACTER 204
|
||||
%token <tn> T_STRING 205
|
||||
%token <integ> C_INTEGER 301
|
||||
%token <words> C_NULL 302
|
||||
%token <words> C_CHARACTER 303
|
||||
%token <words> C_STRING 304
|
||||
%token <words> C_TRUE 305
|
||||
%token <words> C_FALSE 306
|
||||
%token <tn> C_NULL 302
|
||||
%token <tn> C_CHARACTER 303
|
||||
%token <tn> C_STRING 304
|
||||
%token <tn> C_TRUE 305
|
||||
%token <tn> C_FALSE 306
|
||||
%token WHILE 401
|
||||
%token IF 402
|
||||
%token THEN 403
|
||||
|
Reference in New Issue
Block a user