mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2025-02-21 11:11:37 +00:00
create a `SELF' keyword so the global self entity can be handled sanely.
Not fully implemented yet.
This commit is contained in:
parent
2c0de5cb3e
commit
5be384da63
2 changed files with 2 additions and 1 deletions
|
@ -262,6 +262,7 @@ static keyword_t keywords[] = {
|
||||||
{"enum", ENUM, 0, 0, PROG_ID_VERSION},
|
{"enum", ENUM, 0, 0, PROG_ID_VERSION},
|
||||||
{"typedef", TYPEDEF, 0, 0, PROG_ID_VERSION},
|
{"typedef", TYPEDEF, 0, 0, PROG_ID_VERSION},
|
||||||
{"super", SUPER, 0, 0, PROG_VERSION},
|
{"super", SUPER, 0, 0, PROG_VERSION},
|
||||||
|
{"SELF", SELF, 0, 0, PROG_VERSION},
|
||||||
|
|
||||||
{"@class", CLASS, 0, 0, PROG_VERSION},
|
{"@class", CLASS, 0, 0, PROG_VERSION},
|
||||||
{"@defs", DEFS, 0, 0, PROG_VERSION},
|
{"@defs", DEFS, 0, 0, PROG_VERSION},
|
||||||
|
|
|
@ -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 LOCAL RETURN WHILE DO IF ELSE FOR BREAK CONTINUE ELLIPSIS NIL
|
||||||
%token IFBE IFB IFAE IFA
|
%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 ELE_START
|
||||||
%token <type> TYPE
|
%token <type> TYPE
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue