home
/
code
/
tiger.ml.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Expand status notes
[tiger.ml.git]
/
compiler
/
src
/
lib
/
tiger
/
tiger_parser.mly
diff --git
a/compiler/src/lib/tiger/tiger_parser.mly
b/compiler/src/lib/tiger/tiger_parser.mly
index
78d56a0
..
b40892a
100644
(file)
--- 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 Ast = Tiger_absyn
+ module Err = Tiger_error
module Sym = Tiger_symbol
let pos () =
module Sym = Tiger_symbol
let pos () =
@@
-75,7
+76,7
@@
program:
| exp EOF { $1 }
program:
| exp EOF { $1 }
- | error {
Tiger_error.exn ~pos:(pos ()) ~msg:"invalid syntax"
}
+ | error {
Err.raise (Err.Invalid_syntax (pos ()))
}
;
exp:
;
exp:
This page took
0.025185 seconds
and
4
git commands to generate.