X-Git-Url: https://git.xandkar.net/?p=tiger.ml.git;a=blobdiff_plain;f=compiler%2Fsrc%2Flib%2Ftiger%2Ftiger_parser.mly;h=b40892a7606f08639c0c1c37e776cd50de9f2701;hp=f4fbff90644ccea4b1d85604ba694b291e2a135a;hb=c16dd441582b7c7c09cdb3e706f4767a5b266177;hpb=be22952d3228b62e546756299a0f9a127ae64921 diff --git a/compiler/src/lib/tiger/tiger_parser.mly b/compiler/src/lib/tiger/tiger_parser.mly index f4fbff9..b40892a 100644 --- a/compiler/src/lib/tiger/tiger_parser.mly +++ b/compiler/src/lib/tiger/tiger_parser.mly @@ -1,5 +1,6 @@ %{ module Ast = Tiger_absyn + module Err = Tiger_error module Sym = Tiger_symbol let pos () = @@ -75,7 +76,7 @@ program: | exp EOF { $1 } - | error {Tiger_error.exn "invalid syntax" ~pos:(pos ())} + | error {Err.raise (Err.Invalid_syntax (pos ()))} ; exp: