octave-bug-tracker
[Top][All Lists]
Advanced

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

[Octave-bug-tracker] [bug #59784] additional text at end of block commen


From: Rik
Subject: [Octave-bug-tracker] [bug #59784] additional text at end of block comment produces doubled warning
Date: Sat, 13 Feb 2021 16:43:12 -0500 (EST)
User-agent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/87.0.4280.66 Safari/537.36

Follow-up Comment #1, bug #59784 (project octave):

I think the fact that we are getting two messages printed is due to an actual
misunderstanding in using bison parser.  The code in lex.ll is


<<EOF>> {
   return curr_lexer->handle_end_of_input ();
  }


I used a debugger with a breakpoint in handle_end_of_input and the function is
called twice from this location.

I suspect the problem is that when EOF is encountered the token is somehow not
being popped off the stack (possibly because of the return statement).  Or in
some other way we are not marking that we should abandon processing.  Adding
jwe to the CC list since he might understand what is going on.

    _______________________________________________________

Reply to this item at:

  <https://savannah.gnu.org/bugs/?59784>

_______________________________________________
  Message sent via Savannah
  https://savannah.gnu.org/




reply via email to

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