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

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

[Octave-bug-tracker] [bug #36475] classdef: parsing fails if :end syntax


From: anonymous
Subject: [Octave-bug-tracker] [bug #36475] classdef: parsing fails if :end syntax is used
Date: Tue, 15 May 2012 23:20:04 +0000
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:11.0) Gecko/20100101 Firefox/11.0

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

                 Summary: classdef: parsing fails if :end syntax is used
                 Project: GNU Octave
            Submitted by: None
            Submitted on: Tue 15 May 2012 11:20:01 PM UTC
                Category: Interpreter
                Severity: 3 - Normal
                Priority: 5 - Normal
              Item Group: Incorrect Result
                  Status: None
             Assigned to: None
         Originator Name: James Laird
        Originator Email: address@hidden
             Open/Closed: Open
         Discussion Lock: Any
                 Release: dev
        Operating System: Any

    _______________________________________________________

Details:

Any classdef code containing 'end'-based indexing fails to parse, as the 'end'
is treated as an end token rather than an indexing keyword.

A test case and patch are attached.

:2> classdef_test_end
parse error near line 5 of file /home/jhl/classdef_test_end.m
  syntax error
>>>             foo(end-5:end) = [];
                      ^




    _______________________________________________________

File Attachments:


-------------------------------------------------------
Date: Tue 15 May 2012 11:20:01 PM UTC  Name: classdef_test_end.m  Size: 142B  
By: None

<http://savannah.gnu.org/bugs/download.php?file_id=25863>
-------------------------------------------------------
Date: Tue 15 May 2012 11:20:01 PM UTC  Name: classdef_end.patch  Size: 527B  
By: None

<http://savannah.gnu.org/bugs/download.php?file_id=25864>

    _______________________________________________________

Reply to this item at:

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

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




reply via email to

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