From 84c7ec41455e9f7b9bdd7a7336a877fb04e4bd3a Mon Sep 17 00:00:00 2001 From: NanoTech Date: Tue, 6 Dec 2016 09:42:42 +0000 Subject: Read and parse stdin --- src/parser.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/parser.rs') diff --git a/src/parser.rs b/src/parser.rs index 1561230..1ecf040 100644 --- a/src/parser.rs +++ b/src/parser.rs @@ -6,7 +6,7 @@ use lexer::{Lexer, LexicalError, Tok}; pub type ParseError = lalrpop_util::ParseError; -fn parse_expr(s: &str) -> Result { +pub fn parse_expr(s: &str) -> Result { grammar::parse_Expr(Lexer::new(s)) } -- cgit v1.2.3