nagyistoce / open-source-spin-compiler

Automatically exported from code.google.com/p/open-source-spin-compiler
0 stars 0 forks source link

case statement numeric range doesn't handle decimals correctly #9

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
The following code fragment doesn't compile:

PUB null
PUB main(arg)

  case arg.byte[1]--
    2..10: abort
    other: arg.byte[0]++

The issue here is with the 2..10 range (expecting ":"). Using $2..10 works 
fine. Needless to say, the proptool doesn't have this issue.

Compiler has been build with today's head of SVN under mingw32 (Vista) by 
running make.

Original issue reported on code.google.com by marko.lu...@kyi.biglobe.ne.jp on 23 Jan 2012 at 5:40

GoogleCodeExporter commented 9 years ago
This should be fixed now in r22.

Original comment by reltham on 23 Jan 2012 at 12:01