s1s0 / toped

Cross platform, open source IC layout editor
http://www.toped.org.uk/
GNU General Public License v2.0
15 stars 8 forks source link

repeat-until has a wrong looping condition #170

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
The traditional repeat/until statements (Pascal, Python,etc) loop until the 
condition is false. I tell the statements loops until the condition is true. 
The documentation on the web site is in sync with the tool behaviour

Original issue reported on code.google.com by krustev....@gmail.com on 27 Mar 2014 at 11:20

GoogleCodeExporter commented 9 years ago
Fixed in r2439

For compatibility with the old behaviour - a pragma is introduced in the 
interpreter:

#pragma repeatloop default
to get the traditional behaviour - i.e. as in Pascal, Python etc. (as 
introduced by this fix). This is now the default behaviour - so it doesn't need 
to be used for a new code

#pragma repeatloop buggy
to revert the exit condition (i.e. to make it work as before this fix) - i.e. 
an old code will need this pragma to work as before

Original comment by krustev....@gmail.com on 30 Mar 2014 at 1:57

GoogleCodeExporter commented 9 years ago
Closing this batch of tell related new features

Original comment by krustev....@gmail.com on 12 Apr 2014 at 12:56

GoogleCodeExporter commented 9 years ago

Original comment by krustev....@gmail.com on 12 Apr 2014 at 1:03