From 8e368b67de60442c483bd9def7036e52562ccc81 Mon Sep 17 00:00:00 2001 From: AidenRushbrooke <72034940+AidenRushbrooke@users.noreply.github.com> Date: Mon, 22 Nov 2021 16:30:45 +0000 Subject: Improved error handing and added logical statements --- src/example.txt | 19 +++++++++++-------- 1 file changed, 11 insertions(+), 8 deletions(-) (limited to 'src/example.txt') diff --git a/src/example.txt b/src/example.txt index bbc8973..55236c1 100644 --- a/src/example.txt +++ b/src/example.txt @@ -1,9 +1,12 @@ -int::nfact int::n -nfact=1 -n=1 -do while(n<10) -nfact=nfact*n -n=n+1 -print*,n," ", nfact endprint -end do \ No newline at end of file +int::a +int::b +int::temp +a=0 +b=2 +if (a==0.and.b==1) then +print*,"true" +else +print*,"false" +end if + -- cgit v1.2.3