Converting Source Code With Sather 0.x Syntax
to Sather 1.x Syntax.
Rough technical memo for converting source code with sather 0.x syntax
to sather 1.x syntax. Nobuyuki Hikichi(hikichi@sra.co.jp)
3/10 1995
*
constant -> const
*
until
i:INT; until i=n loop
i:= i + 1;
end; -- loop
->
loop defaultIters.times!;
-or->
loop r:INT:=index.upto!(buf.size-s.size)
*
xx:INT -> attr xx:INT;
*
DOUBLE -> FLTD
*
i := 1;
until i >= top loop
...[i]...
i := i + 1;
end;
->
i:= 0; loop unti!l i=count;
a[i]:= i;
i:= i+1;
end; -- loop
*
formal papameter separater
';' -> ','
* break -> break!
* not -> ~
* new -> create
* private -> private attr
* rest := ... -> return ...
* ... = void -> void(...)
* switch . when .. -> case . when