mini-dskin.red 536 B

12345678910111213141516171819202122232425262728293031
  1. % MINI-DSKIN.RED
  2. Procedure TypeFile F;
  3. Begin Scalar InChan,OldChan,c;
  4. InChan:=Open(F,'Input);
  5. OldChan:=Rds InChan;
  6. While Not ((c:=Getc()) eq 26) do PutC(c);
  7. rds OldChan;
  8. close InChan;
  9. end;
  10. Procedure DskIn F;
  11. Begin scalar Infile, OldFile,x;
  12. Infile:=Open(F,'Input);
  13. OldFile:=RDS Infile;
  14. While not ((x:=Read()) eq !$eof!$) do
  15. << x:=Eval x;
  16. If !*Pval then Print x>>;
  17. RDS OldFile;
  18. Close InFile;
  19. End;
  20. FLUID '(!*Echo !*PVAL);
  21. procedure Lapin F;
  22. Begin scalar !*echo, !*pval;
  23. Return Dskin F;
  24. End;
  25. End;