-
Notifications
You must be signed in to change notification settings - Fork 15
/
LuaTokenType.h
86 lines (77 loc) · 1.31 KB
/
LuaTokenType.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
#ifndef __LUA_TOKENTYPE__
#define __LUA_TOKENTYPE__
// This file was automatically generated by EbnfStudio; don't modify it!
#include <QByteArray>
namespace Lua {
enum TokenType {
Tok_Invalid = 0,
TT_Literals,
Tok_Hash,
Tok_Percent,
Tok_Lpar,
Tok_Rpar,
Tok_Star,
Tok_Plus,
Tok_Comma,
Tok_Minus,
Tok_2Minus,
Tok_2MinusLbrack,
Tok_Dot,
Tok_2Dot,
Tok_3Dot,
Tok_Slash,
Tok_Colon,
Tok_Semi,
Tok_Lt,
Tok_Leq,
Tok_Eq,
Tok_2Eq,
Tok_Gt,
Tok_Geq,
Tok_Lbrack,
Tok_Rbrack,
Tok_Rbrack2Minus,
Tok_Hat,
Tok_Lbrace,
Tok_Rbrace,
Tok_TildeEq,
TT_Keywords,
Tok_and,
Tok_break,
Tok_do,
Tok_else,
Tok_elseif,
Tok_end,
Tok_false,
Tok_for,
Tok_function,
Tok_if,
Tok_in,
Tok_local,
Tok_nil,
Tok_not,
Tok_or,
Tok_repeat,
Tok_return,
Tok_then,
Tok_true,
Tok_until,
Tok_while,
TT_Specials,
Tok_Name,
Tok_Number,
Tok_String,
Tok_Comment,
Tok_Designator,
Tok_Eof,
TT_MaxToken,
TT_Max
};
const char* tokenTypeString( int ); // Pretty with punctuation chars
const char* tokenTypeName( int ); // Just the names without punctuation chars
bool tokenTypeIsLiteral( int );
bool tokenTypeIsKeyword( int );
bool tokenTypeIsSpecial( int );
TokenType tokenTypeFromString( const QByteArray& str, int* pos = 0 );
}
#endif // __LUA_TOKENTYPE__