-- Overture STANDARD LIBRARY: INPUT/OUTPUT -- -------------------------------------------- -- -- Standard library for the Overture Interpreter. When the interpreter -- evaluates the preliminary functions/operations in this file, -- corresponding internal functions is called instead of issuing a run -- time error. Signatures should not be changed, as well as name of -- module (VDM-SL) or class (VDM++). Pre/post conditions is -- fully user customisable. -- Dont care's may NOT be used in the parameter lists. -- -- The in/out functions will return false if an error occurs. In this -- case an internal error string will be set (see 'ferror').
types
public
filedirective = <start>|<append>
functions
-- Write VDM value in ASCII format to std out: public
writeval[@p]: @p -> bool
writeval(val)== isnotyetspecified;
-- Write VDM value in ASCII format to file. -- fdir = <start> will overwrite existing file, -- fdir = <append> will append output to the file (created if -- not existing). public
fwriteval[@p]:seq1ofchar * @p * filedirective -> bool
fwriteval(filename,val,fdir) == isnotyetspecified;
-- Read VDM value in ASCII format from file public
freadval[@p]:seq1ofchar -> bool * [@p]
freadval(f) == isnotyetspecified postlet mk_(b,t) = RESULTinnot b => t = nil;
operations
-- Write text to std out. Surrounding double quotes will be stripped, -- backslashed characters should be interpreted. public
echo: seqofchar ==> bool
echo(text) ==
fecho ("",text,nil);
-- Write text to file like 'echo' public
fecho: seqofchar * seqofchar * [filedirective] ==> bool
fecho (filename,text,fdir) == isnotyetspecified pre filename = "" <=> fdir = nil;
-- The in/out functions will return false if an error occur. In this -- case an internal error string will be set. 'ferror' returns this -- string and set it to "". public
ferror:() ==> seqofchar
ferror () == isnotyetspecified;
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung ist noch experimentell.