bugGNU Octave - Bugs: bug #35535, Index-expression parsing issue

 
 

bug #35535: Index-expression parsing issue

Submitted by:  Vladimir <enargit>
Submitted on:  Wed 15 Feb 2012 01:44:55 PM UTC  
 
Category: InterpreterSeverity: 3 - Normal
Priority: 5 - NormalItem Group: Incorrect Result
Status: Need InfoAssigned to: None
Originator Name: Open/Closed: Closed
Release: 3.4.3Operating System: GNU/Linux

Add a New Comment(Rich Markup)
   

You are not logged in

Please log in, so followups can be emailed to you.

 

Sun 16 Mar 2014 07:38:10 PM UTC, comment #2:

No response to request for info. Closing report.

Rik <rik5>
Project Administrator
Sat 11 Jan 2014 09:31:18 PM UTC, comment #1:

There have been many changes to Octave's parser since version 3.4.3. Can you test whether this bug is still present in the current 3.8.0 release of Octave? Or can you provide a minimal code example that shows the bug on your system?

Mike Miller <mtmiller>
Project Administrator
Wed 15 Feb 2012 01:44:55 PM UTC, original submission:

Hello!

I am working on Octclipse project (Eclipse-based GUI for Octave). Now my goal is to reuse octave parser. The idea is to have native C++ code to XML and then use those XML in Java.

My code is based on Octave's tree_print_code class (pt-pr-code.h / pt-pr-code.cc) and is very similar. But I encountered a bug in tree_print_code.

Consider the following code:

It runs in octave as expected. However, when I try to process it with tree_print_code, I get the following output:

So, argument for dot operation (last line) is lost.

My testing code looks like

I tried to debug this on myself, but did not manage to find lost argument "(q)" in parsed octave_function object at all.

Could you fix this issue or suggest a workaround?

Vladimir <enargit>

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach File(s):
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -unavailable- added by rik5 (Posted a comment)
  • -unavailable- added by mtmiller (Posted a comment)
  • -unavailable- added by enargit (Submitted the item)
  •  

    Do you think this task is very important?
    If so, you can click here to add your encouragement to it.
    This task has 0 encouragements so far.

    Only project members can vote.

     

    Please enter the title of George Orwell's famous dystopian book (it's a date):

     

     

    Follow 3 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Sun 16 Mar 2014 07:38:10 PM UTCrik5Open/ClosedOpen=>Closed
    Sat 11 Jan 2014 09:31:18 PM UTCmtmillerCategoryNone=>Interpreter
      StatusNone=>Need Info

    Back to the top


    Powered by Savane 3.1-cleanup1