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
use crate::{NodeImpl, TokenImpl};
impl TokenImpl for i8 {
fn eof() -> Self {
Self::MAX
}
fn is_structural(&self) -> bool {
*self >= 0
}
}
impl TokenImpl for isize {
fn eof() -> Self {
Self::MAX
}
fn is_structural(&self) -> bool {
*self >= 0
}
}
impl TokenImpl for i16 {
fn eof() -> Self {
Self::MAX
}
fn is_structural(&self) -> bool {
*self >= 0
}
}
impl NodeImpl for u8 {
fn null() -> Self {
0
}
}
impl NodeImpl for usize {
fn null() -> Self {
0
}
}
impl NodeImpl for u16 {
fn null() -> Self {
0
}
}