On 16 Nov 2005, at 18:30, Nhan D Le wrote:

I have trouble with my code. Tthe test file s2.k has problem. When debug by

k –t  s2.k

I saw that from the state 61 with the input ‘+’, it entered state 15. But in the report (when create by --report=all), at state 61 there no way to go to state 15.

State 61 with input ‘+’ will go to state 38.



Would you please help me solve this mistake?

You probably have some reductions, that lead to state 15; state 61:
  $default  reduce using rule 38 (setStmt)

Your main problem seems though to be that you have lots of unused rules, which lead to unused terminals and rules:

  Useless nonterminals

   methodDeclaration
   methodSignature
   methodTail
   idList

  Hans Aberg




_______________________________________________
Help-bison@gnu.org http://lists.gnu.org/mailman/listinfo/help-bison

Reply via email to