diff options
author | NanoTech | 2016-12-06 09:42:42 +0000 |
---|---|---|
committer | NanoTech | 2017-03-10 23:48:27 -0600 |
commit | 84c7ec41455e9f7b9bdd7a7336a877fb04e4bd3a (patch) | |
tree | 4064be9c639a53a7ed9e3f8dd55a135891a2c4d3 /src/parser.rs | |
parent | d6240a4b184cac1fbf61ab35f9f3813efb780d31 (diff) |
Read and parse stdin
Diffstat (limited to 'src/parser.rs')
-rw-r--r-- | src/parser.rs | 2 |
1 files changed, 1 insertions, 1 deletions
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<usize, Tok, LexicalError>; -fn parse_expr(s: &str) -> Result<BoxExpr, ParseError> { +pub fn parse_expr(s: &str) -> Result<BoxExpr, ParseError> { grammar::parse_Expr(Lexer::new(s)) } |