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

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

[Octave-bug-tracker] [bug #60882] error parsing command syntax


From: John W. Eaton
Subject: [Octave-bug-tracker] [bug #60882] error parsing command syntax
Date: Wed, 21 Jul 2021 11:58:08 -0400 (EDT)
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Firefox/78.0

Follow-up Comment #22, bug #60882 (project octave):

I pushed the following changeset to make Octave treat all binary ops the same
whether they are in Matlab or not.  

http://hg.savannah.gnu.org/hgweb/octave/rev/da6e5914ddaf

So now


x-=2    %% operator
x-= 2   %% operator
x -= 2  %% operator
x -=2   %% command syntax


Attempting to handle postfix ++ and -- as operators just by looking at syntax
and when they are preceded by spaces is complicated.  If we do the same as
shown above, then it is impossible to use common use of '--' to indicate the
end of options:


foo -- -this-is-not-an-option  %% should be a command?




    _______________________________________________________

Reply to this item at:

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

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




reply via email to

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