The Squirrel interpreter. See http://www.squirrel-lang.org/

Dependents:   Squirrel

Committer:
jhnwkmn
Date:
Tue Dec 16 11:39:42 2014 +0000
Revision:
3:7268a3ceaffc
Parent:
0:97a4f8cc534c
Accepts \r as line terminator as well.

Who changed what in which revision?

UserRevisionLine numberNew contents of line
jhnwkmn 0:97a4f8cc534c 1 /* see copyright notice in squirrel.h */
jhnwkmn 0:97a4f8cc534c 2 #ifndef _SQCOMPILER_H_
jhnwkmn 0:97a4f8cc534c 3 #define _SQCOMPILER_H_
jhnwkmn 0:97a4f8cc534c 4
jhnwkmn 0:97a4f8cc534c 5 struct SQVM;
jhnwkmn 0:97a4f8cc534c 6
jhnwkmn 0:97a4f8cc534c 7 #define TK_IDENTIFIER 258
jhnwkmn 0:97a4f8cc534c 8 #define TK_STRING_LITERAL 259
jhnwkmn 0:97a4f8cc534c 9 #define TK_INTEGER 260
jhnwkmn 0:97a4f8cc534c 10 #define TK_FLOAT 261
jhnwkmn 0:97a4f8cc534c 11 #define TK_BASE 262
jhnwkmn 0:97a4f8cc534c 12 #define TK_DELETE 263
jhnwkmn 0:97a4f8cc534c 13 #define TK_EQ 264
jhnwkmn 0:97a4f8cc534c 14 #define TK_NE 265
jhnwkmn 0:97a4f8cc534c 15 #define TK_LE 266
jhnwkmn 0:97a4f8cc534c 16 #define TK_GE 267
jhnwkmn 0:97a4f8cc534c 17 #define TK_SWITCH 268
jhnwkmn 0:97a4f8cc534c 18 #define TK_ARROW 269
jhnwkmn 0:97a4f8cc534c 19 #define TK_AND 270
jhnwkmn 0:97a4f8cc534c 20 #define TK_OR 271
jhnwkmn 0:97a4f8cc534c 21 #define TK_IF 272
jhnwkmn 0:97a4f8cc534c 22 #define TK_ELSE 273
jhnwkmn 0:97a4f8cc534c 23 #define TK_WHILE 274
jhnwkmn 0:97a4f8cc534c 24 #define TK_BREAK 275
jhnwkmn 0:97a4f8cc534c 25 #define TK_FOR 276
jhnwkmn 0:97a4f8cc534c 26 #define TK_DO 277
jhnwkmn 0:97a4f8cc534c 27 #define TK_NULL 278
jhnwkmn 0:97a4f8cc534c 28 #define TK_FOREACH 279
jhnwkmn 0:97a4f8cc534c 29 #define TK_IN 280
jhnwkmn 0:97a4f8cc534c 30 #define TK_NEWSLOT 281
jhnwkmn 0:97a4f8cc534c 31 #define TK_MODULO 282
jhnwkmn 0:97a4f8cc534c 32 #define TK_LOCAL 283
jhnwkmn 0:97a4f8cc534c 33 #define TK_CLONE 284
jhnwkmn 0:97a4f8cc534c 34 #define TK_FUNCTION 285
jhnwkmn 0:97a4f8cc534c 35 #define TK_RETURN 286
jhnwkmn 0:97a4f8cc534c 36 #define TK_TYPEOF 287
jhnwkmn 0:97a4f8cc534c 37 #define TK_UMINUS 288
jhnwkmn 0:97a4f8cc534c 38 #define TK_PLUSEQ 289
jhnwkmn 0:97a4f8cc534c 39 #define TK_MINUSEQ 290
jhnwkmn 0:97a4f8cc534c 40 #define TK_CONTINUE 291
jhnwkmn 0:97a4f8cc534c 41 #define TK_YIELD 292
jhnwkmn 0:97a4f8cc534c 42 #define TK_TRY 293
jhnwkmn 0:97a4f8cc534c 43 #define TK_CATCH 294
jhnwkmn 0:97a4f8cc534c 44 #define TK_THROW 295
jhnwkmn 0:97a4f8cc534c 45 #define TK_SHIFTL 296
jhnwkmn 0:97a4f8cc534c 46 #define TK_SHIFTR 297
jhnwkmn 0:97a4f8cc534c 47 #define TK_RESUME 298
jhnwkmn 0:97a4f8cc534c 48 #define TK_DOUBLE_COLON 299
jhnwkmn 0:97a4f8cc534c 49 #define TK_CASE 300
jhnwkmn 0:97a4f8cc534c 50 #define TK_DEFAULT 301
jhnwkmn 0:97a4f8cc534c 51 #define TK_THIS 302
jhnwkmn 0:97a4f8cc534c 52 #define TK_PLUSPLUS 303
jhnwkmn 0:97a4f8cc534c 53 #define TK_MINUSMINUS 304
jhnwkmn 0:97a4f8cc534c 54 #define TK_3WAYSCMP 305
jhnwkmn 0:97a4f8cc534c 55 #define TK_USHIFTR 306
jhnwkmn 0:97a4f8cc534c 56 #define TK_CLASS 307
jhnwkmn 0:97a4f8cc534c 57 #define TK_EXTENDS 308
jhnwkmn 0:97a4f8cc534c 58 #define TK_CONSTRUCTOR 310
jhnwkmn 0:97a4f8cc534c 59 #define TK_INSTANCEOF 311
jhnwkmn 0:97a4f8cc534c 60 #define TK_VARPARAMS 312
jhnwkmn 0:97a4f8cc534c 61 //#define TK_VARGC 313
jhnwkmn 0:97a4f8cc534c 62 //#define TK_VARGV 314
jhnwkmn 0:97a4f8cc534c 63 #define TK_TRUE 315
jhnwkmn 0:97a4f8cc534c 64 #define TK_FALSE 316
jhnwkmn 0:97a4f8cc534c 65 #define TK_MULEQ 317
jhnwkmn 0:97a4f8cc534c 66 #define TK_DIVEQ 318
jhnwkmn 0:97a4f8cc534c 67 #define TK_MODEQ 319
jhnwkmn 0:97a4f8cc534c 68 #define TK_ATTR_OPEN 320
jhnwkmn 0:97a4f8cc534c 69 #define TK_ATTR_CLOSE 321
jhnwkmn 0:97a4f8cc534c 70 #define TK_STATIC 322
jhnwkmn 0:97a4f8cc534c 71 #define TK_ENUM 323
jhnwkmn 0:97a4f8cc534c 72 #define TK_CONST 324
jhnwkmn 0:97a4f8cc534c 73
jhnwkmn 0:97a4f8cc534c 74
jhnwkmn 0:97a4f8cc534c 75 typedef void(*CompilerErrorFunc)(void *ud, const SQChar *s);
jhnwkmn 0:97a4f8cc534c 76 bool Compile(SQVM *vm, SQLEXREADFUNC rg, SQUserPointer up, const SQChar *sourcename, SQObjectPtr &out, bool raiseerror, bool lineinfo);
jhnwkmn 0:97a4f8cc534c 77 #endif //_SQCOMPILER_H_