rustql_common/token.rs
1use serde_derive::{Deserialize, Serialize};
2#[derive(Debug, Clone, PartialEq, Serialize, Deserialize)]
3pub enum TokenKind {
4 /* Start and EOF */
5 Start,
6 EOFToken,
7 /* Punctuator */
8 Point, // !
9 DollarSign, // $
10 ParenthesesLeft, // (
11 ParenthesesRight, // )
12 Ellipsis, // ...
13 Colon, // :
14 Eqal, // =
15 At, // @
16 BracketLeft, // [
17 BracketRight, // ]
18 BracesLeft, // {
19 Pipe, // |
20 BracesRight, // }
21 And, // & (not in the spec, but need it)
22 /* Name */
23 Name,
24 /* IntValue */
25 IntValue,
26 /* FloatValue */
27 FloatValue,
28 /* StringValue */
29 StringValue,
30 /* Comment */
31 Comment,
32}