help-bison
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Help


From: Hans Aberg
Subject: Re: Help
Date: Thu, 17 Nov 2005 09:15:01 +0100

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






reply via email to

[Prev in Thread] Current Thread [Next in Thread]