Le 16 sept. 2009 à 19:06, tys lefering a écrit :
On Wed, September 16, 2009 16:32, Akim Demaille wrote:
It would be nice to extend the *.output file with various metrics
about the grammar.
Agreed.
Will add this to TODO.
About this metrics feature: there is a patched bison version
with a metrics option added. it is at "Ambiguity detection in GNU
Bison"
http://www.lsv.ens-cachan.fr/~schmitz/software
there are some test grammars and documentation and cannot
test this feature because the bison-2.3a+ambiguity.tar.bz2
does not compile for some reason.
the source for metrics is in metrics.c
<metrics.c>
Wow... Indeed, that's very much like it, and much more! We should
definitely study the opportunity to include these changes (heuristics
for ambiguity detection) in the main stream Bison.
Maybe 2.7?
We have really many branches going on currently. I, at least, need to
focus on 2.6.