From 0624f9db4aeaa5681941750c3a1a17ca5fbb7e72 Mon Sep 17 00:00:00 2001 From: Marijn Haverbeke Date: Fri, 4 Mar 2011 07:22:43 +0100 Subject: Add a pretty-printer Adds a -pp option to the compiler which will cause it to simply pretty-print the given file. --- src/comp/front/parser.rs | 1 + 1 file changed, 1 insertion(+) (limited to 'src/comp/front/parser.rs') diff --git a/src/comp/front/parser.rs b/src/comp/front/parser.rs index 6f3111c7..f60ff36b 100644 --- a/src/comp/front/parser.rs +++ b/src/comp/front/parser.rs @@ -983,6 +983,7 @@ impure fn parse_prefix_expr(parser p) -> @ast.expr { type op_spec = rec(token.token tok, ast.binop op, int prec); +// FIXME make this a const, don't store it in parser state fn prec_table() -> vec[op_spec] { ret vec(rec(tok=token.BINOP(token.STAR), op=ast.mul, prec=11), rec(tok=token.BINOP(token.SLASH), op=ast.div, prec=11), -- cgit v1.2.3