misc/liblua/llex.h
changeset 10017 de822cd3df3a
parent 2812 0a24853de796
equal deleted inserted replaced
10015:4feced261c68 10017:de822cd3df3a
     9 
     9 
    10 #include "lobject.h"
    10 #include "lobject.h"
    11 #include "lzio.h"
    11 #include "lzio.h"
    12 
    12 
    13 
    13 
    14 #define FIRST_RESERVED	257
    14 #define FIRST_RESERVED  257
    15 
    15 
    16 /* maximum length of a reserved word */
    16 /* maximum length of a reserved word */
    17 #define TOKEN_LEN	(sizeof("function")/sizeof(char))
    17 #define TOKEN_LEN   (sizeof("function")/sizeof(char))
    18 
    18 
    19 
    19 
    20 /*
    20 /*
    21 * WARNING: if you change the order of this enumeration,
    21 * WARNING: if you change the order of this enumeration,
    22 * grep "ORDER RESERVED"
    22 * grep "ORDER RESERVED"
    31   TK_CONCAT, TK_DOTS, TK_EQ, TK_GE, TK_LE, TK_NE, TK_NUMBER,
    31   TK_CONCAT, TK_DOTS, TK_EQ, TK_GE, TK_LE, TK_NE, TK_NUMBER,
    32   TK_NAME, TK_STRING, TK_EOS
    32   TK_NAME, TK_STRING, TK_EOS
    33 };
    33 };
    34 
    34 
    35 /* number of reserved words */
    35 /* number of reserved words */
    36 #define NUM_RESERVED	(cast(int, TK_WHILE-FIRST_RESERVED+1))
    36 #define NUM_RESERVED    (cast(int, TK_WHILE-FIRST_RESERVED+1))
    37 
    37 
    38 
    38 
    39 /* array with token `names' */
    39 /* array with token `names' */
    40 LUAI_DATA const char *const luaX_tokens [];
    40 LUAI_DATA const char *const luaX_tokens [];
    41 
    41