source: to-imperative/trunk/java/refal/refal/plus/internal/StdIO.rfi @ 3659

Last change on this file since 3659 was 3659, checked in by yura, 13 years ago
  • StdIO java+refal;
  • Property svn:eol-style set to native
  • Property svn:keywords set to "Author Date Id Revision"
File size: 1.1 KB
Line 
1// $Id: StdIO.rfi 3659 2008-03-31 15:31:21Z yura $
2
3$module "refal.plus.internal.StdIO";
4
5$table Buffers;
6/*
7 * For the moment the format is:
8 *   s.channel  -->  stream
9 */
10
11//$channel StdIn StdOut StdErr;
12
13//$func  Channel      = s.Channel;
14$func? OpenFile     s.Channel e.FileName s.Mode = ;
15$func  CloseChannel s.Channel = ;
16
17//$func ParseFileName e.FileName = s.DriveWord s.PathWord s.NameWord s.ExtWord;
18//$func? EraseFile    e.FileName = ;
19
20$func? IsEof        s.Channel = ;
21
22$func? Read     = t.Term;
23$func? ReadChar = s.Char;
24$func? ReadLine = e.Char;
25//$func  Write   e.Expr = ;
26//$func  WriteLn e.Expr = ;
27//$func  Print   e.Expr = ;
28//$func  PrintLn e.Expr = ;
29
30$func? ReadCh     s.Channel = t.Term;
31$func? ReadCharCh s.Channel = s.Char;
32$func? ReadLineCh s.Channel = e.Char;
33//$func  WriteCh    s.Channel e.Expr = ;
34//$func  WriteLnCh  s.Channel e.Expr = ;
35//$func  PrintCh    s.Channel e.Expr = ;
36//$func  PrintLnCh  s.Channel e.Expr = ;
37//$func  Flush      s.Channel = ;
38
39//$func? PrimOpenFile s.channel e.file s.mode = ;
40//$func  PrimCloseChannel s.channel = ;
41
42//$func? PrimRead s.channel s.n = e.chars;
43
44//FIXME: should be a box?
45$const ReadChunkSize = 64;
46
47$func StaticInit = ;
Note: See TracBrowser for help on using the repository browser.