Browse thread
[ANNOUNCE] Alpha release of Menhir, an LR(1) parser generator for ocaml
[
Home
]
[ Index:
by date
|
by threads
]
[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
| Date: | -- (:) |
| From: | Stefan Monnier <monnier@i...> |
| Subject: | Re: [Caml-list] Re: [ANNOUNCE] Alpha release of Menhir, an LR(1) parser generator for ocaml |
>> For toy projects it's amazing: you get good error messages with 0 effort.
> What about non-toy projects? Are there times where the automatic error
> recovery mechanism gets in the way?
I wouldn't know, really.
SML/NJ uses it and I find its syntax error reporting to be generally good.
E.g. significantly better than OCaml's ;-)
But if it's not good enough, there are hooks to influence its behavior
(e.g. telling it what to try and add/remove first, thus telling it basically
what are tokens commonly forgotten and spuriously added), but I don't know
how it compares in practice to a well tuned yacc error recovery.
Stefan