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

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

[Octave-bug-tracker] [bug #39967] Parse error for valid (?) syntax


From: anonymous
Subject: [Octave-bug-tracker] [bug #39967] Parse error for valid (?) syntax
Date: Fri, 06 Sep 2013 08:35:29 +0000
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:21.0) Gecko/20100101 Firefox/21.0

URL:
  <http://savannah.gnu.org/bugs/?39967>

                 Summary: Parse error for valid (?) syntax
                 Project: GNU Octave
            Submitted by: None
            Submitted on: Fri 06 Sep 2013 08:35:28 AM UTC
                Category: Interpreter
                Severity: 3 - Normal
                Priority: 5 - Normal
              Item Group: Incorrect Result
                  Status: None
             Assigned to: None
         Originator Name: Michael Leitner
        Originator Email: 
             Open/Closed: Open
         Discussion Lock: Any
                 Release: 3.6.2
        Operating System: GNU/Linux

    _______________________________________________________

Details:

As far as I know, Octave has no defined syntax yet (Appendix I in the manual),
and this use of the colon operator seems to be an extension with respect to
the (supposedly exactly defined) MATLAB syntax (although --traditional seems
to let it pass). Anyway, I would expect


~:1> [1 [2 3](:)']

to be equivalent to

~:1> [1 [2 3]]

instead the interpreter says

parse error:

  syntax error

>>> [1 [2 3](:)']
              ^

Interestingly, 

~:1> [1 [2 3]'(:)']

does work.




    _______________________________________________________

Reply to this item at:

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

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




reply via email to

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