Fixed type checking for multidimensional arrays.
1 /* vim: set ts=4 sw=4 tw=99 et:
3 * Copyright (C) 2012 David Anderson
5 * This file is part of SourcePawn.
7 * SourcePawn is free software: you can redistribute it and/or modify it under
8 * the terms of the GNU General Public License as published by the Free
9 * Software Foundation, either version 3 of the License, or (at your option)
12 * SourcePawn is distributed in the hope that it will be useful, but WITHOUT ANY
13 * WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
14 * FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
16 * You should have received a copy of the GNU General Public License along with
17 * SourcePawn. If not, see http://www.gnu.org/licenses/.
19 #ifndef _include_jitcraft_token_h_
20 #define _include_jitcraft_token_h_
24 // List of tokens the scanner can recognize.
27 // * (ASSIGN_ADD - TOK_PLUS) must be the delta between an operator and its
28 // op-and-assign equivalent.
34 _(RETURN, "'return'") \
36 _(INTEGER_LITERAL, "<integer>") \
37 _(HEX_LITERAL, "<hex>") \
38 _(FLOAT_LITERAL, "<float>") \
39 _(STRING_LITERAL, "<string>") \
47 _(CONTINUE, "<continue>") \
48 _(FORWARD, "<forward>") \
49 _(PUBLIC, "<public>") \
51 _(NATIVE, "<native>") \
55 _(STRUCT, "<struct>") \
56 _(SWITCH, "<switch>") \
58 _(DEFAULT, "<default>") \
59 _(TYPEDEF, "<typedef>") \
62 _(SIZEOF, "<sizeof>") \
63 _(IMPORT, "<import>") \
90 _(ASSIGN_BITAND, "&=") \
91 _(ASSIGN_BITOR, "|=") \
92 _(ASSIGN_BITXOR, "^=") \
93 _(ASSIGN_SHR, ">>=") \
94 _(ASSIGN_USHR, ">>>=") \
95 _(ASSIGN_SHL, "<<=") \
113 _(EOF, "<end-of-file>")
117 # define _(name, str) TOK_##name,
120 TOK_BITAND = TOK_AMPERSAND,
124 extern const char *TokenNames[];
128 #endif //_include_jitcraft_token_h_