diff options
author | Aleksey Kladov <[email protected]> | 2017-12-22 13:56:22 +0000 |
---|---|---|
committer | Aleksey Kladov <[email protected]> | 2017-12-22 13:56:22 +0000 |
commit | 9726ecdc99a35467af4aa9f375821805d55e4869 (patch) | |
tree | d2cbd6ce7b1640042acf79912be61da00fbf82cb /minirust.rs | |
parent | 6ff019c25f027be1bf2896ce82659dc8d99515f8 (diff) |
Add an example
Diffstat (limited to 'minirust.rs')
-rw-r--r-- | minirust.rs | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/minirust.rs b/minirust.rs index d92c03bea..009892ca9 100644 --- a/minirust.rs +++ b/minirust.rs | |||
@@ -66,3 +66,20 @@ impl<'f> Iterator for Children<'f> { | |||
66 | next | 66 | next |
67 | } | 67 | } |
68 | } | 68 | } |
69 | |||
70 | |||
71 | |||
72 | pub const ERROR: NodeKind = NodeKind(0); | ||
73 | pub const WHITESPACE: NodeKind = NodeKind(1); | ||
74 | pub const STRUCT_KW: NodeKind = NodeKind(2); | ||
75 | pub const IDENT: NodeKind = NodeKind(3); | ||
76 | pub const L_CURLY: NodeKind = NodeKind(4); | ||
77 | pub const R_CURLY: NodeKind = NodeKind(5); | ||
78 | pub const COLON: NodeKind = NodeKind(6); | ||
79 | pub const COMMA: NodeKind = NodeKind(7); | ||
80 | pub const AMP: NodeKind = NodeKind(8); | ||
81 | pub const LINE_COMMENT: NodeKind = NodeKind(9); | ||
82 | pub const FILE: NodeKind = NodeKind(10); | ||
83 | pub const STRUCT_DEF: NodeKind = NodeKind(11); | ||
84 | pub const FIELD_DEF: NodeKind = NodeKind(12); | ||
85 | pub const TYPE: NodeKind = NodeKind(13); | ||