compiler : Compiler := new Compiler();
codegen : Codegen := new Codegen(); --io : IO := new IO();
operations
public Run : () ==> (bool|int|seqofchar)
Run() == let programs = getSimpleNames() in
Run(programs);
public Run : seqofseqofchar ==> seqofchar
Run(programs) == if programs = [] then return [] else let
program = hd programs,
z = parseSimpleProgram(program),
a = compiler.Compile(program, z),
b = codegen.Generate(a),
real_b = b ^ " public static void main(String[] argv){ System.exit(x()); }}",
c = writeProgram(program, real_b),
d = compileProgram(program),
e = runProgram(program) in if e <> 42 then return"\nTest " ^ program ^ " failed with code: " ^ iToS(e) ^ Run(tl programs) else return"\nTest " ^ program ^ " success" ^ Run(tl programs);
functions public iToS : int -> seqofchar
iToS(i) == isnotyetspecified;
public showType : int -> int
showType(type) == isnotyetspecified;
public getSimpleNames : () -> seqofseqofchar
getSimpleNames() == isnotyetspecified;
public parseSimpleProgram : seqofchar -> SimpleSpecification
parseSimpleProgram(filename) == 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.