aboutsummaryrefslogtreecommitdiff
path: root/check
diff options
context:
space:
mode:
authorTucker Evans <tuckerevans24@gmail.com>2019-08-18 22:27:52 -0400
committerTucker Evans <tuckerevans24@gmail.com>2019-08-18 22:27:52 -0400
commitdd07055aca1c45d147d773350e0c21930822a74f (patch)
tree8d19ee459aabb4fb1a849049299fb06a106508ee /check
parentf9ff4c818cee8c8b83e9a3d5161d4de2b8443146 (diff)
Add for loop parsing
Also fixes tree printing
Diffstat (limited to 'check')
-rw-r--r--check/for.p7
1 files changed, 1 insertions, 6 deletions
diff --git a/check/for.p b/check/for.p
index 694f9a5..5391c8c 100644
--- a/check/for.p
+++ b/check/for.p
@@ -1,14 +1,9 @@
program main ( input, output );
- var a, b: integer;
- var x,y,z: real;
- var ai :array [1..10] of integer;
+ var a, b,c: integer;
begin
-{ TEST }
a := 1;
- x := 3.14;
- b := a + 35;
(* test *)
for c := 0 to 10 do begin
for a:= 10 downto 0 do b := a - c