Skip to content

Commit b7e8b79

Browse files
committed
---
yaml --- r: 13517 b: refs/heads/master c: d6522ab h: refs/heads/master i: 13515: 76ee1c2 v: v3
1 parent bd18883 commit b7e8b79

File tree

3 files changed

+18
-2
lines changed

3 files changed

+18
-2
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
---
2-
refs/heads/master: d906fba63621d049bdbd0fe9478fef383efb2341
2+
refs/heads/master: d6522ab2d3f7ab03c6d5d93ea196137823d2cfcf
33
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
44
refs/heads/snap-stage3: 4a81779abd786ff22d71434c6d9a5917ea4cdfff
55
refs/heads/try: 2898dcc5d97da9427ac367542382b6239d9c0bbf

trunk/src/libsyntax/parse/lexer.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ fn new_tt_reader(span_diagnostic: diagnostic::span_handler,
4545
mut cur_tok: token::EOF, /* dummy value, never read */
4646
mut cur_chpos: 0u /* dummy value, never read */
4747
};
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 */
4949
ret r;
5050
}
5151

trunk/src/libsyntax/parse/token.rs

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,9 +77,25 @@ enum token {
7777
/* Name components */
7878
IDENT(str_num, bool),
7979
UNDERSCORE,
80+
81+
//ACTUALLY(whole_nonterminal),
82+
8083
EOF,
8184
}
8285

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+
8399
fn binop_to_str(o: binop) -> str {
84100
alt o {
85101
PLUS { "+" }

0 commit comments

Comments
 (0)