create a `SELF' keyword so the global self entity can be handled sanely.

Not fully implemented yet.
This commit is contained in:
Bill Currie 2002-05-17 20:25:46 +00:00
parent 2c0de5cb3e
commit 5be384da63
2 changed files with 2 additions and 1 deletions

View file

@ -262,6 +262,7 @@ static keyword_t keywords[] = {
{"enum", ENUM, 0, 0, PROG_ID_VERSION},
{"typedef", TYPEDEF, 0, 0, PROG_ID_VERSION},
{"super", SUPER, 0, 0, PROG_VERSION},
{"SELF", SELF, 0, 0, PROG_VERSION},
{"@class", CLASS, 0, 0, PROG_VERSION},
{"@defs", DEFS, 0, 0, PROG_VERSION},

View file

@ -113,7 +113,7 @@ void free_local_inits (hashtab_t *def_list);
%token LOCAL RETURN WHILE DO IF ELSE FOR BREAK CONTINUE ELLIPSIS NIL
%token IFBE IFB IFAE IFA
%token SWITCH CASE DEFAULT STRUCT ENUM TYPEDEF SUPER
%token SWITCH CASE DEFAULT STRUCT ENUM TYPEDEF SUPER SELF
%token ELE_START
%token <type> TYPE