[Oz] Using Mozart & benchmarks
Jacob Buck
jacobb at dai.ed.ac.uk
Thu Feb 4 21:03:05 CET 1999
Dave Moffat wrote:
>
> Hello Mozartians,
>
[snip]
> Namely: how is it supposed to be used under emacs?
> If you start up mozart, you get a new (?!) emacs
> process and a buffer in Oz-mode, but there is little
> help about what to do with it. Special keys,
> yes, for consulting/loading/compiling the current
> paragraph etc., but how do the experts use
> the system day-to-day?
I just started learning Oz3 and I do find the use of Emacs quite
straight-forward. Emacs is launched with two buffers. One which can be
use for entering Oz code and one for output from the emulator (you can
do that from any buffer, as far as I understand). There is a menu for
basic Oz features like 'feed-line', 'feed-buffer', 'feed-file'. So you
can enter some code in the Oz buffer like:
{Browse 'HelloWorld'}
and use 'feed-line'. This can also be done by running a lisp function by
pressing M-x oz-feed-line (this will tell you that you can also use the
key sequence C-. C-l).
This will evaluate and run the line of Oz code and after a while (in
Win95 it takes a while to run Tk) the Browser is opened showing
'HelloWorld'.
You can also create new files or open existing files with the prefix .oz
and then compile it with M-x oz-compile-file (or using the menu option).
This will give you prompt:
ozc -c %s
and just pressing return will compile the file of the current buffer. If
you are making larger projects with more Oz files, Make can be used to
compile with the 'ozc' command. As usual 'M-x compile' can run make.
Hope this helps a little.
Jacob
-
Please send submissions to users at mozart-oz.org
and administriva mail to users-request at mozart-oz.org.
The Mozart Oz web site is at http://www.mozart-oz.org/.
More information about the mozart-users
mailing list