From 441697ab359ae2a17c531e5b8e26f66ffcf72992 Mon Sep 17 00:00:00 2001 From: Marijn Haverbeke Date: Thu, 10 Mar 2011 16:02:53 +0100 Subject: Extend stream functionality Writer and reader streams now come with methods to write and read little-endian numbers. Whether that is the right place for such methods is debatable, but for now, that's where they live. --- src/comp/front/parser.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/comp/front/parser.rs') diff --git a/src/comp/front/parser.rs b/src/comp/front/parser.rs index 2ae3b844..832afe20 100644 --- a/src/comp/front/parser.rs +++ b/src/comp/front/parser.rs @@ -115,7 +115,7 @@ impure fn new_parser(session.session sess, if (_str.ends_with(path, ".rc")) { ftype = CRATE_FILE; } - auto srdr = io.new_stdio_reader(path); + auto srdr = io.file_reader(path); auto rdr = lexer.new_reader(srdr, path); auto npos = rdr.get_curr_pos(); ret stdio_parser(sess, env, ftype, lexer.next_token(rdr), -- cgit v1.2.3