1use grammar::OwnedSlice;
2use grammar::LiteralValue;
3use grammar::OperatorType;
4use grammar::VariableDeclarationKind;
5
6#[derive(Debug, PartialEq)]
7pub enum ReservedKind {
8 Enum,
9 Implements,
10 Package,
11 Protected,
12 Interface,
13 Private,
14 Public,
15}
16
17#[derive(Debug, PartialEq)]
18pub enum Token {
19 LineTermination,
20 Control(u8), Operator(OperatorType),
22 Declaration(VariableDeclarationKind),
23 Break,
24 Do,
25 Case,
26 Else,
27 Catch,
28 Export,
29 Class,
30 Extends,
31 Return,
32 While,
33 Finally,
34 Super,
35 With,
36 Continue,
37 For,
38 Switch,
39 Yield,
40 Debugger,
41 Function,
42 This,
43 Default,
44 If,
45 Throw,
46 Import,
47 Try,
48 Await,
49 Static,
50 Reserved(ReservedKind),
51 Identifier(OwnedSlice),
52 Literal(LiteralValue),
53}