
Some parts of this message have been removed.
Learn more about Nabble's
security policy.
Etienne,
My apologies. After a late night of
hacking, I found the error. The part of the grammar causing the error was:
comma {-> absyn} =
enlist1_commaitem_kw_comma {-> enlist1_commaitem_kw_comma.absyn};
enlist1_commaitem_kw_comma {-> absyn+}
= …;
Hence, when the parser went to get the first
parameters of the comma production, it was expecting a PAbsyn node but instead
found a LinkedList. Adding a wrapper around enlist1_..., packing the list into
a PAbsyn, solved the problem. However, this seems like a sablecc3.2 bug to me,
since in my way of considering the problem, there’s a type mismatch in the
production (given by the abstract syntax tree type annotations) but sablecc
doesn’t pick up on it.
If you want any help reproducing the
problem in the case you consider it to be a bug, then please contact me.
Thanks for your help and congratulations
on producing such a well-thought-out, usable and productive tool!
Andrew
Hi Andrew,
Could you send the grammar? You forgot to attach it.
Etienne
Andrew Sweet wrote:
...
I’ve attached my grammar file (it is quite extensive,
I’m sorry). If anyone can help, you’ll have my eternal gratitude.
--
Etienne M. Gagnon, Ph.D.
SableCC: http://sablecc.org
SableVM: http://sablevm.org
_______________________________________________
SableCC-Discussion mailing list
SableCC-Discussion@...
http://lists.sablecc.org/listinfo/sablecc-discussion