Remove label from error raising helper
[tiger.ml.git] / compiler / src / lib / tiger / tiger_parser.mly
index 1bb9388..f4fbff9 100644 (file)
 
 %%
 
-program: exp EOF { $1 };
+program:
+  | exp EOF { $1 }
+  | error {Tiger_error.exn "invalid syntax" ~pos:(pos ())}
+  ;
 
 exp:
   | NIL
This page took 0.023879 seconds and 4 git commands to generate.