Sophie

Sophie

distrib > Mageia > 7 > armv7hl > media > core-release > by-pkgid > 9825acea20b8c1730a908ceb6b6baa6d > files > 300

fpc-doc-3.0.4-6.mga7.armv7hl.rpm

program testwrite;

{$mode objfpc}
{$H+}

uses
  Classes, libsee, mod_stream;

Var
  interp : TSEE_interpreter;
  ainput : PSEE_INPUT;
  res    : TSEE_Value;

const
   Program_text = 'writeln("Hello, world!");';
   
begin
  see_init;
  RegisterWriteModule;
  SEE_interpreter_init(@interp);
  ainput :=SEE_input_utf8(@interp, pchar(program_text));
  See_global_eval(@interp,ainput,@res);
  see_input_close(ainput);
end.