2020-05-30 16:20:06 -05:00
|
|
|
PRINT-BANG INPUT (DISPLAY): A
|
|
|
|
PRINT-BANG INPUT (DEBUG): TokenStream [
|
2022-01-01 03:15:47 -06:00
|
|
|
Ident {
|
|
|
|
ident: "A",
|
|
|
|
span: #0 bytes(503..504),
|
2020-05-30 16:20:06 -05:00
|
|
|
},
|
|
|
|
]
|
2020-06-14 06:30:42 -05:00
|
|
|
PRINT-ATTR INPUT (DISPLAY): const A : u8 = 0 ;
|
2020-05-30 16:20:06 -05:00
|
|
|
PRINT-ATTR INPUT (DEBUG): TokenStream [
|
|
|
|
Ident {
|
|
|
|
ident: "const",
|
2020-09-12 22:26:17 -05:00
|
|
|
span: #4 bytes(416..421),
|
2020-05-30 16:20:06 -05:00
|
|
|
},
|
2022-01-01 03:15:47 -06:00
|
|
|
Ident {
|
|
|
|
ident: "A",
|
|
|
|
span: #0 bytes(503..504),
|
2020-05-30 16:20:06 -05:00
|
|
|
},
|
|
|
|
Punct {
|
|
|
|
ch: ':',
|
|
|
|
spacing: Alone,
|
2020-09-12 22:26:17 -05:00
|
|
|
span: #4 bytes(424..425),
|
2020-05-30 16:20:06 -05:00
|
|
|
},
|
|
|
|
Ident {
|
|
|
|
ident: "u8",
|
2020-09-12 22:26:17 -05:00
|
|
|
span: #4 bytes(426..428),
|
2020-05-30 16:20:06 -05:00
|
|
|
},
|
|
|
|
Punct {
|
|
|
|
ch: '=',
|
|
|
|
spacing: Alone,
|
2020-09-12 22:26:17 -05:00
|
|
|
span: #4 bytes(429..430),
|
2020-05-30 16:20:06 -05:00
|
|
|
},
|
|
|
|
Literal {
|
|
|
|
kind: Integer,
|
|
|
|
symbol: "0",
|
|
|
|
suffix: None,
|
2020-09-12 22:26:17 -05:00
|
|
|
span: #4 bytes(431..432),
|
2020-05-30 16:20:06 -05:00
|
|
|
},
|
|
|
|
Punct {
|
|
|
|
ch: ';',
|
|
|
|
spacing: Alone,
|
2020-09-12 22:26:17 -05:00
|
|
|
span: #4 bytes(432..433),
|
2020-05-30 16:20:06 -05:00
|
|
|
},
|
|
|
|
]
|
2021-12-01 13:45:14 -06:00
|
|
|
PRINT-DERIVE INPUT (DISPLAY): struct A {}
|
2020-05-30 16:20:06 -05:00
|
|
|
PRINT-DERIVE INPUT (DEBUG): TokenStream [
|
|
|
|
Ident {
|
|
|
|
ident: "struct",
|
2020-09-12 22:26:17 -05:00
|
|
|
span: #4 bytes(468..474),
|
2020-05-30 16:20:06 -05:00
|
|
|
},
|
2022-01-01 03:15:47 -06:00
|
|
|
Ident {
|
|
|
|
ident: "A",
|
|
|
|
span: #0 bytes(503..504),
|
2020-05-30 16:20:06 -05:00
|
|
|
},
|
|
|
|
Group {
|
|
|
|
delimiter: Brace,
|
|
|
|
stream: TokenStream [],
|
2020-09-12 22:26:17 -05:00
|
|
|
span: #4 bytes(478..480),
|
2020-05-30 16:20:06 -05:00
|
|
|
},
|
|
|
|
]
|