mirror of
https://github.com/irmen/prog8.git
synced 2025-01-05 03:31:09 +00:00
tweak
This commit is contained in:
parent
f784da2da6
commit
957c42bc1d
@ -350,12 +350,11 @@ class PtRange(type: DataType, position: Position) : PtExpression(type, position)
|
|||||||
|
|
||||||
val fromLv = from as? PtNumber
|
val fromLv = from as? PtNumber
|
||||||
val toLv = to as? PtNumber
|
val toLv = to as? PtNumber
|
||||||
val stepLv = step as? PtNumber
|
if(fromLv==null || toLv==null)
|
||||||
if(fromLv==null || toLv==null || stepLv==null)
|
|
||||||
return null
|
return null
|
||||||
val fromVal = fromLv.number.toInt()
|
val fromVal = fromLv.number.toInt()
|
||||||
val toVal = toLv.number.toInt()
|
val toVal = toLv.number.toInt()
|
||||||
val stepVal = stepLv.number.toInt()
|
val stepVal = step.number.toInt()
|
||||||
return makeRange(fromVal, toVal, stepVal)
|
return makeRange(fromVal, toVal, stepVal)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -7,7 +7,8 @@ TODO
|
|||||||
Future Things and Ideas
|
Future Things and Ideas
|
||||||
^^^^^^^^^^^^^^^^^^^^^^^
|
^^^^^^^^^^^^^^^^^^^^^^^
|
||||||
|
|
||||||
- implement const long to store a 32 bit signed integer value. (constants should be able to be long?)
|
- implement const long to store a 32 bit signed integer value. (constants should be able to be long?) -> const_long branch
|
||||||
|
- get rid of the BuiltinFunctionCall (and PtBuiltinFunctionCall) ast nodes distinction, just use 1 node type, they're mixed up now already anyways.
|
||||||
- something to reduce the need to use fully qualified names all the time. 'with' ? Or 'using <prefix>'?
|
- something to reduce the need to use fully qualified names all the time. 'with' ? Or 'using <prefix>'?
|
||||||
- Why are blocks without an addr moved BEHIND a block with an address? That's done in the StatementReorderer.
|
- Why are blocks without an addr moved BEHIND a block with an address? That's done in the StatementReorderer.
|
||||||
- on the C64: make the floating point routines @banked so that basic can be permanently banked out even if you use floats? But this will crash when the call is done from program code at $a000+
|
- on the C64: make the floating point routines @banked so that basic can be permanently banked out even if you use floats? But this will crash when the call is done from program code at $a000+
|
||||||
|
Loading…
Reference in New Issue
Block a user