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

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

[Octave-bug-tracker] [bug #45947] savepath can create a ~/.octaverc that


From: John W. Eaton
Subject: [Octave-bug-tracker] [bug #45947] savepath can create a ~/.octaverc that crashes Octave at startup
Date: Tue, 10 May 2016 21:51:11 +0000 (UTC)
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:44.0) Gecko/20100101 Firefox/44.0 Iceweasel/44.0

Follow-up Comment #8, bug #45947 (project octave):

The REJECT feature is not used explicitly, but is triggered by this rule in
lex.ll:

%{
// Identifiers.

// Don't allow get and set to be recognized as keywords if they are
// followed by "(".
%}

(set|get)/{S}*\( {
    HANDLE_IDENTIFIER ("(set|get)/{S}*\\(", true);
  }


The problem is the variable-length trailing context (the whitespace followed
by an open paren).

If we can change the way that get and set are handled for classdef methods
like "get.property_name" to avoid using this trailing context, then this
problem should go away.

There is one more use of trailing context in the lexer, but it doesn't involve
variable length matching, so it isn't a problem.

Probably we just need a completely different way of recognizing these get/set
identifiers in this context.

    _______________________________________________________

Reply to this item at:

  <http://savannah.gnu.org/bugs/?45947>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.gnu.org/




reply via email to

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