File tree Expand file tree Collapse file tree 3 files changed +18
-2
lines changed
trunk/src/libsyntax/parse Expand file tree Collapse file tree 3 files changed +18
-2
lines changed Original file line number Diff line number Diff line change 1
1
---
2
- refs/heads/master: d906fba63621d049bdbd0fe9478fef383efb2341
2
+ refs/heads/master: d6522ab2d3f7ab03c6d5d93ea196137823d2cfcf
3
3
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
4
4
refs/heads/snap-stage3: 4a81779abd786ff22d71434c6d9a5917ea4cdfff
5
5
refs/heads/try: 2898dcc5d97da9427ac367542382b6239d9c0bbf
Original file line number Diff line number Diff line change @@ -45,7 +45,7 @@ fn new_tt_reader(span_diagnostic: diagnostic::span_handler,
45
45
mut cur_tok: token:: EOF , /* dummy value, never read */
46
46
mut cur_chpos: 0 u /* dummy value, never read */
47
47
} ;
48
- // tt_next_token(r); /* get cur_tok and cur_chpos set up */
48
+ tt_next_token ( r) ; /* get cur_tok and cur_chpos set up */
49
49
ret r;
50
50
}
51
51
Original file line number Diff line number Diff line change @@ -77,9 +77,25 @@ enum token {
77
77
/* Name components */
78
78
IDENT ( str_num , bool ) ,
79
79
UNDERSCORE ,
80
+
81
+ //ACTUALLY(whole_nonterminal),
82
+
80
83
EOF ,
81
84
}
82
85
86
+ #[ auto_serialize]
87
+ #[ doc = "For interpolation during macro expansion." ]
88
+ enum whole_nonterminal {
89
+ w_item( @ast:: item ) ,
90
+ w_block( ast:: blk ) ,
91
+ w_stmt( @ast:: stmt ) ,
92
+ w_pat( @ast:: pat ) ,
93
+ w_expr( @ast:: expr ) ,
94
+ w_ty( @ast:: ty ) ,
95
+ w_ident( ast:: ident ) ,
96
+ w_path( @ast:: path ) ,
97
+ }
98
+
83
99
fn binop_to_str ( o : binop ) -> str {
84
100
alt o {
85
101
PLUS { "+" }
You can’t perform that action at this time.
0 commit comments