EASY
|
EASY is the name of a scripting language used by the tdbengine. Its syntax is based upon a mixture of BASIC, C and Pascal.
The EASY source code is compiled to a binary code and this code then is interpreted at runtime. This ensures that all syntax errors are found already in the development process.
Example
procedure Main var nBottles : Integer var s : String CgiCloseBuffer nBottles:=99 while nBottles>=0 do if nBottles=1 then s:= else s:='s' end CgiWriteLn(Str(nBottles)+' bottle'+s+' of beer on the wall,') CgiWriteLn(Str(nBottles)+' bottle'+s+' of beer,') if nBottles=0 then CgiWriteLn('Go to the store, buy some more,') CgiWriteLn('99 bottles of beer on the wall.') else CgiWriteLn('Take one down and pass it around,') CgiWriteLn(Str(nBottles)+' bottle'+s+' of beer on the wall,') end nBottles-- end endproc