diff options
author | AidenRushbrooke <72034940+AidenRushbrooke@users.noreply.github.com> | 2021-11-27 19:37:41 +0000 |
---|---|---|
committer | AidenRushbrooke <72034940+AidenRushbrooke@users.noreply.github.com> | 2021-11-27 19:37:41 +0000 |
commit | 8badb0fab61a23dd81466c3f5f8aadd77bf952e3 (patch) | |
tree | 41a7e51e700ddee1a4e66aebfd3edaea29b60203 /src/example.txt | |
parent | ac425713cfd5a4fac7ce5b607d722eeb9954ba10 (diff) | |
download | esotericFORTRAN-8badb0fab61a23dd81466c3f5f8aadd77bf952e3.tar.gz esotericFORTRAN-8badb0fab61a23dd81466c3f5f8aadd77bf952e3.zip |
Added basic support for arrays
Diffstat (limited to 'src/example.txt')
-rw-r--r-- | src/example.txt | 20 |
1 files changed, 8 insertions, 12 deletions
diff --git a/src/example.txt b/src/example.txt index 55236c1..22a2bfb 100644 --- a/src/example.txt +++ b/src/example.txt @@ -1,12 +1,8 @@ -int::n -int::a -int::b -int::temp -a=0 -b=2 -if (a==0.and.b==1) then -print*,"true" -else -print*,"false" -end if - +int dimension(5)::test +int::i +do i=0,4 +test(i)=i +end do +do i=0,4 +print*,test(i) +end do
\ No newline at end of file |