Ticket #1016 (closed: fixed)

Opened 11 years ago

Last modified 5 years ago

Immediate window to support loops and multiline ifs

Reported by: Nick Draper Owned by: Sofia Antony
Priority: major Milestone: Iteration 26
Component: Mantid Keywords:
Cc: Blocked By:
Blocking: Tester: Michael Whitty

Description

It should spot the : at the end and then append lines until the end of the top level block before parsing.

sample:

i=0
while i<2:
  print i
  i+=1
print "done" 

Change History

comment:1 Changed 10 years ago by Nick Draper

  • Owner changed from Martyn Gigg to Steve Williams
  • Status changed from new to assigned

comment:2 Changed 10 years ago by Sofia Antony

  • Owner changed from Steve Williams to Sofia Antony
  • Component set to Mantid

comment:3 Changed 10 years ago by Sofia Antony

  • Status changed from assigned to accepted

comment:4 Changed 10 years ago by Sofia Antony

(In [7563]) re#1016 - added code to support loops/multi line in the script interpreter window

comment:5 Changed 10 years ago by Sofia Antony

(In [8057]) re #1016 - line offset set when multi line loops execution.

comment:6 Changed 10 years ago by Sofia Antony

(In [8066]) re #1016 - line offset set when multi line loops compiles the code.

comment:7 Changed 10 years ago by Sofia Antony

  • Status changed from accepted to verify
  • Resolution set to fixed

comment:8 Changed 10 years ago by Michael Whitty

  • Status changed from verify to verifying
  • Tester set to Michael Whitty

comment:9 Changed 10 years ago by Michael Whitty

  • Status changed from verifying to closed

this works. potential improvement: automatically indent the users lines after an ':'.

comment:10 Changed 5 years ago by Stuart Campbell

This ticket has been transferred to github issue 1864

Note: See TracTickets for help on using tickets.