-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstate.h
68 lines (51 loc) · 1.28 KB
/
state.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
#ifndef STATE_H
#define STATE_H
#include <QSharedPointer>
#include "item_type.h"
#include "state_type.h"
class Lexer;
struct State {
virtual StateType Execute(Lexer *lex) = 0;
virtual ~State() {}
};
struct LexStatement : public State {
StateType Execute(Lexer *lex);
void CheckForEquals(Lexer *lex, ItemType with, ItemType without);
};
struct SelectStatement : public State {
StateType Execute(Lexer *lex);
};
struct LexIdentifier : public State {
StateType Execute(Lexer *lex);
};
struct LexQuotedIdentifier : public State {
StateType Execute(Lexer *lex);
};
struct LexBracketedIdentifier : public State {
StateType Execute(Lexer *lex);
};
struct LexNumber : public State {
StateType Execute(Lexer *lex);
};
struct LexSpace : public State {
StateType Execute(Lexer *lex);
};
struct LexString : public State {
StateType Execute(Lexer *lex);
};
struct LexUnicodeString : public State {
StateType Execute(Lexer *lex);
};
struct LexLessThan : public State {
StateType Execute(Lexer *lex);
};
struct LexComment : public State {
StateType Execute(Lexer *lex);
};
struct LexExclamation : public State {
StateType Execute(Lexer *lex);
};
struct LexMultiLineComment : public State {
StateType Execute(Lexer *lex);
};
#endif // STATE_H