Hi Torsten,
On 13 mrt 2009, at 12:49, Torsten Anders wrote:
Dear Nanitous,
Sorry for the late reply.
No problem
On Mar 10, 2009, at 12:41 AM, Nanitous wrote:
Tonight I've tried the samples from the Gump manual
(http://www.mozart-oz.org/home/doc/gump/index.html
). But they appear not to work. What's happening? Do I make a
(hopefully) silly mistake?
I get the same behaviour in version Mozart 1.3.2 and 1.4.0 running
them either on Mac OS X 10.5.6 (using Aquamacs 1.6) or MS Windos XP
sp3 (Using gnu Emacs 20.7).
I create a file LambdaScanner.ozg using the example code here Program
2.1 (http://www.mozart-oz.org/home/doc/gump/node3.html#section.scanner.example
). Emacs provides a nice syntax colouring.
Then I prefix the file with the compiler options:
\switch +gump
\insert ~/LambdaScanner.ozg
You should not add these compiler switches to the file
LambdaScanner.ozg itself. After all, why should LambdaScanner.ozg
recursively insert itself? That results in an endless long program.
Aha, that explains the strange 'hang-up'.
Having tried your suggestions successfully, I've just re-read the Gump
tutorial and may be it is an idea to rewrite section "2.1.2 Invoking
Gump" and section "3.1.2 Invoking Gump". I believe that it is not
clear when to and how to "feed" the switch statements from the
tutorial text.
Instead, you feed these compiler directives from a different file. I
just double-checked that it works.
Including "\switch +gump" at the top of LambdaScanner.ozg and
"\insert LambdaScanner.ozg" at the top of the file gumptest.oz, which
contains code using the LambdaScanner-class as generated by Gump.
This creates a working demo. Great!
But what happens now is that the *.o, *.l, *.so and *.C files are
created in the root directory of my system (Mac OS X) instead of my
home directory when I compile the scanner in OPI.
Any idea's?
And then I hit C-. C-b (Not C-c C-c as the documentation text
suggest
because it is not defined, should this be fixed)
The shortcut for showing the compiler buffer is C-. c -- this is
likely some type in the tutorial.
I believe it is indeed a typo in the tutorial. It is repeated through
the whole tutorial. The OPI manual, however, documents it correctly.
Thanks again for the help,
kr
Twan
Best
Torsten
Apparently nothing happens and the engine doesn't accept any input
anymore. I've to restart Aquamacs (C-. h and then C-. r) to be able
to do anything else from the OPI.
On Mac OS X I get suspended "emulator.exe" processes for each time I
attempted to compile the file.
Anybody out there had the same problem? And a solution?
Thanks,
/Twan
_________________________________________________________________________________
mozart-users mailing list
[email protected]
http://www.mozart-oz.org/mailman/listinfo/mozart-users
--
Torsten Anders
Interdisciplinary Centre for Computer Music Research
University of Plymouth
Office: +44-1752-586219
Private: +44-1752-558917
http://strasheela.sourceforge.net
http://www.torsten-anders.de
_________________________________________________________________________________
mozart-users mailing list
[email protected]
http://www.mozart-oz.org/mailman/listinfo/mozart-users