File tree Expand file tree Collapse file tree 3 files changed +1
-8
lines changed
branches/try/src/librustsyntax/parse Expand file tree Collapse file tree 3 files changed +1
-8
lines changed Original file line number Diff line number Diff line change 2
2
refs/heads/master: 61b1875c16de39c166b0f4d54bba19f9c6777d1a
3
3
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
4
4
refs/heads/snap-stage3: 4a81779abd786ff22d71434c6d9a5917ea4cdfff
5
- refs/heads/try: e3961df78d23e353ed48961bd82c27b2c935494c
5
+ refs/heads/try: fa86b5d67f22796797aac1f2f6267e270b1ba5d4
6
6
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105
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