# sqcompiler.h

    00001 /*  see copyright notice in squirrel.h */
    00002 #ifndef _SQCOMPILER_H_
    00003 #define _SQCOMPILER_H_
    00004
    00005 struct SQVM;
    00006
    00007 #define TK_IDENTIFIER 258
    00008 #define TK_STRING_LITERAL 259
    00009 #define TK_INTEGER  260
    00010 #define TK_FLOAT  261
    00011 #define TK_DELEGATE 262
    00012 #define TK_DELETE 263
    00013 #define TK_EQ 264
    00014 #define TK_NE 265
    00015 #define TK_LE 266
    00016 #define TK_GE 267
    00017 #define TK_SWITCH 268
    00018 #define TK_ARROW  269
    00019 #define TK_AND  270
    00020 #define TK_OR 271
    00021 #define TK_IF 272
    00022 #define TK_ELSE 273
    00023 #define TK_WHILE  274
    00024 #define TK_BREAK  275
    00025 #define TK_FOR  276
    00026 #define TK_DO 277
    00027 #define TK_NULL 278
    00028 #define TK_FOREACH  279
    00029 #define TK_IN 280
    00030 #define TK_NEWSLOT  281
    00031 #define TK_MODULO 282
    00032 #define TK_LOCAL  283
    00033 #define TK_CLONE  284
    00034 #define TK_FUNCTION 285
    00035 #define TK_RETURN 286
    00036 #define TK_TYPEOF 287
    00037 #define TK_UMINUS 288
    00038 #define TK_PLUSEQ 289
    00039 #define TK_MINUSEQ  290
    00040 #define TK_CONTINUE 291
    00041 #define TK_YIELD 292
    00042 #define TK_TRY 293
    00043 #define TK_CATCH 294
    00044 #define TK_THROW 295
    00045 #define TK_SHIFTL 296
    00046 #define TK_SHIFTR 297
    00047 #define TK_RESUME 298
    00048 #define TK_DOUBLE_COLON 299
    00049 #define TK_CASE 300
    00050 #define TK_DEFAULT 301
    00051 #define TK_THIS 302
    00052 #define TK_PLUSPLUS 303
    00053 #define TK_MINUSMINUS 304
    00054 #define TK_PARENT 305
    00055 #define TK_USHIFTR 306
    00056 #define TK_CLASS 307
    00057 #define TK_EXTENDS 308
    00058 #define TK_CONSTRUCTOR 310
    00059 #define TK_INSTANCEOF 311
    00060 #define TK_VARPARAMS 312
    00061 #define TK_VARGC 313
    00062 #define TK_VARGV 314
    00063 #define TK_TRUE 315
    00064 #define TK_FALSE 316
    00065 #define TK_MULEQ 317
    00066 #define TK_DIVEQ 318
    00067 #define TK_MODEQ 319
    00068 #define TK_ATTR_OPEN 320
    00069 #define TK_ATTR_CLOSE 321
    00070 #define TK_STATIC 322
    00071 #define TK_ENUM 323
    00072 #define TK_CONST 324
    00073
    00074
    00075 typedef void(*CompilerErrorFunc)(void *ud, const SQChar *s);
    00076 bool Compile(SQVM *vm, SQLEXREADFUNC rg, SQUserPointer up, const SQChar *sourcename, SQObjectPtr &out, bool raiseerror, bool lineinfo);
    00077 #endif //_SQCOMPILER_H_