Just in case it can help, the full backtrace is:
% perl -I blib/lib t/xml-1.0-5th-edition.t
1..3
# Running under perl version 5.014002 for linux
# Current time local: Sat Dec 22 00:26:02 2012
# Current time GMT: Fri Dec 21 23:26:02 2012
# Using Test.pm version 1.25_02
ok 1
Uncaught exception from user code:
Problem in g->rule_rank_set(5, -2): No error at
/usr/local/lib/perl/5.14.2/Marpa/R2/Grammar.pm line 1209.
at /usr/local/lib/perl/5.14.2/Marpa/R2/Grammar.pm line 1208
Marpa::R2::Internal::Grammar::add_user_rule('Marpa::R2::Grammar=ARRAY(0x89ce740)',
'HASH(0x8358b6c)') called at
/usr/local/lib/perl/5.14.2/Marpa/R2/Grammar.pm line 1026
Marpa::R2::Internal::Grammar::add_user_rules('Marpa::R2::Grammar=ARRAY(0x89ce740)',
'ARRAY(0x8bde1ac)') called at
/usr/local/lib/perl/5.14.2/Marpa/R2/Grammar.pm line 350
Marpa::R2::Grammar::set('Marpa::R2::Grammar=ARRAY(0x89ce740)',
'HASH(0x8be9138)') called at
/usr/local/lib/perl/5.14.2/Marpa/R2/Grammar.pm line 163
Marpa::R2::Grammar::new('Marpa::R2::Grammar', 'HASH(0x8be9138)')
called at blib/lib/Marpa/EBNF.pm line 2567
Marpa::EBNF::grammar('Marpa::EBNF=HASH(0x855b32c)',
'--p\x{a}Source:
http://www.w3.org/TR/REC-xml/\x{a}
http://www....') called at t/xml-1.0-5th-edition.t line 107
Le Ven 21 Déc 2012 18:33:22, jddfr74 a écrit :
Show quoted text> Hello,
>
> I just hitted this message. The grammar is quite big (hundreds of rules
> and tokens), so I wonder if it is possible to have a more meaningful
> message? That could help to disect if the error is in the grammar or in
> Marpa::R2.
>
> I can say that the grammar itself have ranks all over the place, with no
> exception, every first rhs of every rule have a rank => 0, then the rank
> decreases by 1 at every '|'.
>
> The grammar precomputes fine without rank.
>
> Thanks, Cheers, Jean-Damien.