X-Git-Url: http://git.annexia.org/?a=blobdiff_plain;f=src%2Fparse.ml;h=da42b87a378315624991a6ca882c858b4ed7d46c;hb=54c8ad92025a9c77c2b10644499b3944e1299187;hp=34ed38baac9691d508612e29b1179c23a3d422b2;hpb=ec7d2c76a7ae7447866522103b18107f154083cb;p=goals.git diff --git a/src/parse.ml b/src/parse.ml index 34ed38b..da42b87 100644 --- a/src/parse.ml +++ b/src/parse.ml @@ -38,7 +38,7 @@ let parse_file env lexbuf = failwithf "%a: parse error" string_position lexbuf let parse_expr lexbuf = - try Parser.expr Lexer.read lexbuf + try Parser.expr_only Lexer.read lexbuf with | SyntaxError msg -> failwithf "%a: %s" string_position lexbuf msg