Index
StrasheelaTutorial
SPrototyper
CustomCompiler
This functor provides an interactive tutorial for the Oz programming language and for Strasheela. Just start InteractiveTutorial.exe (e.g. at the command line).

The chapters (documentation and code) is all stored in the directory "./TheExamples/" (possibly in subdirectories). They are stored in *.tut files of the following XML format just (giving some example, for a formal definition see ../xml-schema/tutorial.rnc). Chapters are shown in the alphabetical order of their *.tut file pathes, and in the order they are stored in the *.tut file.

<?xml version="1.0" encoding="UTF-8"?>

<chapter>
<section title="My Test 1">
<subsection title="My Test 1.1">
<info>this is a test</info>
<oz>{Browse hi}</oz>
</subsection>
<subsection title="My Test 1.2">
<info>
the
next
test is
this
</info>
<oz>{Browse there}</oz>
</subsection>
</section>
</chapters>


The *.tut files are best edited with the Emacs nxml-mode (http://thaiopensource.com/nxml-mode/). Validation, automatic completition etc. are supported for the *.tut files format: an XML schema for *.tut files is provided (in the Relax NG format) at ../xml-schema/tutorial.rnc. For the existing files, Emacs finds this schema file automatically (at least on UNIX..) due to a schemas.xml file in the respective directories.


NB: QTk defines some default behaviour (is it a look? cf. http://www.mozart-oz.org/documentation/mozart-stdlib/wp/qtk/html/node5.html#chapter.advanced), which overwrites the default color scheme of other TK applications. For example, whenever QTk is used, the background color of the Inspector turns grey.

Functor

Import

Export

Define

proc{StartPrototyper }
Top-level definition: starts Prototyper.


proc{OutputMuse Dir}
Expects a directory (VS), transforms all *.tut files of the tutorial in *.muse files and writes them into this directory. The basefile name of the *.tut files are kept, but their extension is changed to *.muse.


End