13.04.2013, 11:14
Today I learned the compiler explicitly recognises "::" as a valid token:
sc.h:
sc2.c:
However, the "tDBLCOLON" identifier is never used anywhere so it is not valid code syntax anywhere.
sc.h:
pawn Код:
#define tDBLCOLON 280 /* :: */
pawn Код:
char *sc_tokens[] = {
"*=", "/=", "%=", "+=", "-=", "<<=", ">>>=", ">>=", "&=", "^=", "|=",
"||", "&&", "==", "!=", "<=", ">=", "<<", ">>>", ">>", "++", "--",
"...", "..", "::",
"assert", "break", "case", "const", "continue", "default", "defined",
"do", "else", "exit", "for", "forward", "goto", "if", "native", "new",
"operator", "public", "return", "sizeof", "sleep", "state", "static",
"stock", "switch", "tagof", "while",
"#assert", "#define", "#else", "#elseif", "#endif", "#endinput",
"#error", "#file", "#if", "#include", "#line", "#pragma",
"#tryinclude", "#undef",
";", ",", ";", "[integer value]", "[rational value]", "[identifier]",
"[label]", "[field/parameter reference]", "[string]", "[string]"
};