home
/
code
/
tiger.ml.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Remove label from error raising helper
[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
1bb9388
..
f4fbff9
100644
(file)
--- a/
compiler/src/lib/tiger/tiger_parser.mly
+++ b/
compiler/src/lib/tiger/tiger_parser.mly
@@
-73,7
+73,10
@@
%%
-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.