% Flow.m4 % Here is a test file exercising the FlowchartDefs.m4 definitions .PS include(FlowchartDefs.m4) gen_init linethick_(1.0) arrowwid = 0.05 arrowht = 0.1 fillval = 0.8 down Case: fcase(, "Case 1",[fbox("Task 1"); W:last [].W; N:last [].N arrow down linewid/3 from last [].S fbox("Task 1.5") with .N at Here; E:last [].E; S:last [].S], "Case 2",fbox("Task 2" "is bigger",wid fboxwid*1.2 ht fboxht*3/2), "Case 3",fbox("Task 3")dnl ) "\sl .N" at Case.N rjust above; "\sl .S" at Case.S rjust below "\sl .E" at Case.E ljust; "\sl .W" at Case.W rjust "\sl Case statement" below at Case.s+(0,-0.2) Whiledo: fwhiledo("$i < n$",,fbox("Task")) with .nw at Case.ne+(0.5,0) "\sl .N" at Whiledo.N rjust; "\sl .S" at Whiledo.S rjust below "\sl .E" at Whiledo.E ljust; "\sl .W" at Whiledo.W rjust "\sl While-do" below at Whiledo.s+(0,-0.2) Repeatuntil: frepeatuntil("$n \geq 5$",,fbox("Task")) \ with .sw at Case.se + (0.5,0.2) "\sl .N" at Repeatuntil.N rjust above; "\sl .S" at Repeatuntil.S rjust below "\sl .E" at Repeatuntil.E ljust; "\sl .W" at Repeatuntil.W rjust "\sl Repeat-until" below at Repeatuntil.s+(0,-0.2) Ifthenelse: fifthenelse("$A