File tree Expand file tree Collapse file tree 2 files changed +0
-7
lines changed Expand file tree Collapse file tree 2 files changed +0
-7
lines changed Original file line number Diff line number Diff line change @@ -154,7 +154,6 @@ fn is_lit(t: token::token) -> bool {
154
154
token:: LIT_UINT ( _, _) { true }
155
155
token:: LIT_FLOAT ( _, _) { true }
156
156
token:: LIT_STR ( _) { true }
157
- token:: LIT_BOOL ( _) { true }
158
157
_ { false }
159
158
}
160
159
}
Original file line number Diff line number Diff line change @@ -64,13 +64,10 @@ enum token {
64
64
LIT_UINT ( u64 , ast:: uint_ty ) ,
65
65
LIT_FLOAT ( str_num , ast:: float_ty ) ,
66
66
LIT_STR ( str_num ) ,
67
- LIT_BOOL ( bool ) ,
68
67
69
68
/* Name components */
70
69
IDENT ( str_num , bool ) ,
71
- IDX ( int ) ,
72
70
UNDERSCORE ,
73
- BRACEQUOTE ( str_num ) ,
74
71
EOF ,
75
72
76
73
}
@@ -156,15 +153,12 @@ fn to_str(in: interner<str>, t: token) -> str {
156
153
LIT_STR ( s) { // FIXME: escape.
157
154
ret "\" " + interner:: get :: < str > ( in, s) + "\" " ;
158
155
}
159
- LIT_BOOL ( b) { if b { ret "true" ; } else { ret "false" ; } }
160
156
161
157
/* Name components */
162
158
IDENT ( s, _) {
163
159
ret interner:: get :: < str > ( in, s) ;
164
160
}
165
- IDX ( i) { ret "_" + int:: to_str ( i, 10 u) ; }
166
161
UNDERSCORE { ret "_" ; }
167
- BRACEQUOTE ( _) { ret "<bracequote>" ; }
168
162
EOF { ret "<eof>" ; }
169
163
}
170
164
}
You can’t perform that action at this time.
0 commit comments