forked from M-Labs/nac3
standalone: Adapt loop example to output loop variable
This commit is contained in:
parent
6de0884dc1
commit
17b4686260
|
@ -1,9 +1,12 @@
|
|||
# For Loop using an increasing range() expression as its iterable
|
||||
|
||||
@extern
|
||||
def output_int32(x: int32):
|
||||
...
|
||||
|
||||
def run() -> int32:
|
||||
for _ in range(10):
|
||||
output_int32(_)
|
||||
_ = 0
|
||||
i = 0
|
||||
for i in range(10):
|
||||
output_int32(i)
|
||||
output_int32(i)
|
||||
return 0
|
||||
|
|
Loading…
Reference in New Issue