Reserve many keywords.

This commit is contained in:
David Anderson 2014-12-09 23:04:13 -08:00
parent 9c98edd104
commit 94bed806fe
3 changed files with 116 additions and 13 deletions

View File

@ -298,7 +298,7 @@ native bool:GetPlayerJingleFile(client, String:hex[], maxlength);
* @param out Buffer to store the output traffic velocity. * @param out Buffer to store the output traffic velocity.
* @noreturn * @noreturn
*/ */
native GetServerNetStats(&Float:in, &Float:out); native GetServerNetStats(&Float:inAmount, &Float:outAmout);
/** /**
* Equip's a player's weapon. * Equip's a player's weapon.
@ -343,4 +343,4 @@ native SetClientInfo(client, const String:key[], const String:value[]);
* *
* @return Amount of ammo actually given. * @return Amount of ammo actually given.
*/ */
native GivePlayerAmmo(client, amount, ammotype, bool:suppressSound=false); native GivePlayerAmmo(client, amount, ammotype, bool:suppressSound=false);

View File

@ -394,9 +394,12 @@ enum TokenKind {
/* value of last multi-character operator */ /* value of last multi-character operator */
tMIDDLE = tDBLCOLON, tMIDDLE = tDBLCOLON,
/* reserved words (statements) */ /* reserved words (statements) */
tACQUIRE,
tAS,
tASSERT, tASSERT,
tBEGIN, tBEGIN,
tBREAK, tBREAK,
tCATCH,
tCASE, tCASE,
tCAST_TO, tCAST_TO,
tCELLSOF, tCELLSOF,
@ -408,28 +411,47 @@ enum TokenKind {
tDEFINED, tDEFINED,
tDELETE, tDELETE,
tDO, tDO,
tDOUBLE,
tELSE, tELSE,
tEND, tEND,
tENUM, tENUM,
tEXIT, tEXIT,
tEXPLICIT,
tFINALLY,
tFOR, tFOR,
tFOREACH,
tFORWARD, tFORWARD,
tFUNCENUM, tFUNCENUM,
tFUNCTAG, tFUNCTAG,
tFUNCTION, tFUNCTION,
tGOTO, tGOTO,
tIF, tIF,
tIMPLICIT,
tIMPORT,
tIN,
tINT, tINT,
tINT8,
tINT16,
tINT32,
tINT64,
tINTERFACE,
tINTN,
tLET, tLET,
tMETHODMAP, tMETHODMAP,
tNAMESPACE,
tNATIVE, tNATIVE,
tNEW, tNEW,
tNULL, tNULL,
tNULLABLE, tNULLABLE,
tOBJECT, tOBJECT,
tOPERATOR, tOPERATOR,
tPACKAGE,
tPRIVATE,
tPROTECTED,
tPUBLIC, tPUBLIC,
tREADONLY,
tRETURN, tRETURN,
tSEALED,
tSIZEOF, tSIZEOF,
tSLEEP, tSLEEP,
tSTATIC, tSTATIC,
@ -439,13 +461,26 @@ enum TokenKind {
tTAGOF, tTAGOF,
tTHEN, tTHEN,
tTHIS, tTHIS,
tTHROW,
tTRY,
tTYPEDEF, tTYPEDEF,
tTYPEOF,
tTYPESET, tTYPESET,
tUINT8,
tUINT16,
tUINT32,
tUINT64,
tUINTN,
tUNION, tUNION,
tUSING,
tVAR, tVAR,
tVARIANT,
tVIEW_AS, tVIEW_AS,
tVIRTUAL,
tVOID, tVOID,
tVOLATILE,
tWHILE, tWHILE,
tWITH,
/* compiler directives */ /* compiler directives */
tpASSERT, /* #assert */ tpASSERT, /* #assert */
tpDEFINE, tpDEFINE,

View File

@ -1959,25 +1959,93 @@ const char *sc_tokens[] = {
"*=", "/=", "%=", "+=", "-=", "<<=", ">>>=", ">>=", "&=", "^=", "|=", "*=", "/=", "%=", "+=", "-=", "<<=", ">>>=", ">>=", "&=", "^=", "|=",
"||", "&&", "==", "!=", "<=", ">=", "<<", ">>>", ">>", "++", "--", "||", "&&", "==", "!=", "<=", ">=", "<<", ">>>", ">>", "++", "--",
"...", "..", "::", "...", "..", "::",
"acquire",
"as",
"assert", "assert",
"*begin", "break", "*begin",
"case", "cast_to", "cellsof", "char", "const", "continue", "break",
"decl", "default", "defined", "delete", "do", "catch",
"else", "*end", "enum", "exit", "case",
"for", "forward", "funcenum", "functag", "function", "cast_to",
"cellsof",
"char",
"const",
"continue",
"decl",
"default",
"defined",
"delete",
"do",
"double",
"else",
"*end",
"enum",
"exit",
"explicit",
"finally",
"for",
"foreach",
"forward",
"funcenum",
"functag",
"function",
"goto", "goto",
"if", "int", "if",
"implicit",
"import",
"in",
"int",
"int8",
"int16",
"int32",
"int64",
"interface",
"intn",
"let", "let",
"methodmap", "methodmap",
"native", "new", "null", "__nullable__", "namespace",
"object", "operator", "native",
"new",
"null",
"__nullable__",
"object",
"operator",
"package",
"private",
"protected",
"public", "public",
"readonly",
"return", "return",
"sizeof", "sleep", "static", "stock", "struct", "switch", "sealed",
"tagof", "*then", "this", "typedef", "typeset", "sizeof",
"sleep",
"static",
"stock",
"struct",
"switch",
"tagof",
"*then",
"this",
"throw",
"try",
"typedef",
"typeof",
"typeset",
"uint8",
"uint16",
"uint32",
"uint64",
"uintn",
"union", "union",
"var", "view_as", "void", "using",
"var",
"variant",
"view_as",
"virtual",
"void",
"volatile",
"while", "while",
"with",
"#assert", "#define", "#else", "#elseif", "#emit", "#endif", "#endinput", "#assert", "#define", "#else", "#elseif", "#emit", "#endif", "#endinput",
"#endscript", "#error", "#file", "#if", "#include", "#line", "#pragma", "#endscript", "#error", "#file", "#if", "#include", "#line", "#pragma",
"#tryinclude", "#undef", "#tryinclude", "#undef",