diff options
| author | Graydon Hoare <[email protected]> | 2010-08-27 12:36:57 -0700 |
|---|---|---|
| committer | Graydon Hoare <[email protected]> | 2010-08-27 13:08:47 -0700 |
| commit | 1428b59a19610d838d7849c7ac518c40281fddd1 (patch) | |
| tree | 0487fee69e199737150c8f48f9149224d2412203 /src/comp/fe/parser.rs | |
| parent | Read definitions of tag types in the DWARF (diff) | |
| download | rust-1428b59a19610d838d7849c7ac518c40281fddd1.tar.xz rust-1428b59a19610d838d7849c7ac518c40281fddd1.zip | |
Modify rustboot to use lexer.reader.
Diffstat (limited to 'src/comp/fe/parser.rs')
| -rw-r--r-- | src/comp/fe/parser.rs | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/comp/fe/parser.rs b/src/comp/fe/parser.rs index 02de22a7..d2da7910 100644 --- a/src/comp/fe/parser.rs +++ b/src/comp/fe/parser.rs @@ -8,7 +8,7 @@ state type parser = fn new_parser(str path) -> parser { state obj stdio_parser(mutable token.token tok, - _io.stdio_reader rdr) + lexer.reader rdr) { state fn peek() -> token.token { ret tok; @@ -17,7 +17,8 @@ fn new_parser(str path) -> parser { tok = lexer.next_token(rdr); } } - auto rdr = _io.new_stdio_reader(path); + auto srdr = _io.new_stdio_reader(path); + auto rdr = lexer.new_reader(srdr, path); ret stdio_parser(lexer.next_token(rdr), rdr); } |