Init-Interp.txt 701 B

123456789101112131415161718192021222324252627282930
  1. MODULE Init;
  2. IMPORT
  3. LinConsole,
  4. HostFonts (* Fonts.SetHook; required for Texts *),
  5. HostWindows (* Windows.SetHook *),
  6. HostDates (* Dates.SetHook *),
  7. HostDialog (* Dialog.SetShowHook *),
  8. StdLog,
  9. StdInterpreter, (* Dialog.SetCallHook *)
  10. StdDialog (* Views.SetViewHook *),
  11. Converters (* .odc *),
  12. Dialog,
  13. TextViews, TextControllers;
  14. PROCEDURE Init;
  15. VAR res: INTEGER;
  16. BEGIN
  17. (* StdLog.Open; *)
  18. Converters.Register("Documents.ImportDocument", "Documents.ExportDocument", "", "odc", {});
  19. (* Converters.Register("StdETHConv.ImportETHDoc", "", "TextViews.View", "eth", {Converters.importAll}); *)
  20. Dialog.Call("ConsInterp.Run", " ", res)
  21. END Init;
  22. BEGIN
  23. Init
  24. END Init.