From 8badb0fab61a23dd81466c3f5f8aadd77bf952e3 Mon Sep 17 00:00:00 2001 From: AidenRushbrooke <72034940+AidenRushbrooke@users.noreply.github.com> Date: Sat, 27 Nov 2021 19:37:41 +0000 Subject: Added basic support for arrays --- src/example.txt | 20 ++++++++------------ 1 file changed, 8 insertions(+), 12 deletions(-) (limited to 'src/example.txt') 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 -- cgit v1.2.3