10
0
mirror of https://gitlab.com/scemama/irpf90.git synced 2024-11-15 02:23:43 +01:00
irpf90/example/input.irp.f
2009-10-21 15:27:42 +02:00

20 lines
403 B
Forth

BEGIN_PROVIDER [ integer, d1 ]
&BEGIN_PROVIDER [ integer, d2 ]
&BEGIN_PROVIDER [ integer, d3 ]
&BEGIN_PROVIDER [ integer, d4 ]
&BEGIN_PROVIDER [ integer, d5 ]
BEGIN_SHELL [ /usr/bin/python ]
for i in range(1,6):
print " print *, 'd%d'"%(i,)
print " read(*,*) d%d"%(i,)
if i > 1:
print " ASSERT ( d%d > d%d )"%(i,i-1)
END_SHELL
print *, &
'ceci est un ' &
//'test'
END_PROVIDER