Search the web
Sign In
New User? Sign Up
mocka · The Mocka and Modula-2 mailinglist.
? Already a member? Sign in to Yahoo!

Yahoo! Groups Tips

Did you know...
Want to share photos of your group with the world? Add a group photo to Flickr.

Best of Y! Groups

   Check them out and nominate your group.
Having problems with message search? Fill out this form to ensure your group is one of the first to be migrated to the new message search system.

Messages

  Messages Help
Advanced
Messages 1 - 30 of 707   Newest  |  < Newer  |  Older >  |  Oldest
Messages: Show Message Summaries   (Group by Topic) Sort by Date v  
#30 From: "Jesus" <jconsuegra@...>
Date: Mon Sep 15, 2003 11:09 am
Subject: Re: Mocka under Slackware Linux
jconsuegra
Offline Offline
Send Email Send Email
 
Thanks a lot!.
Saludos cordiales.
Jesus.

--- In mocka@yahoogroups.com, jan verhoeven <jan@v...> wrote:
> Op Monday 15 September 2003 00:21 schreef Jesus:
>
>  > > Ever heard of Ed Nisley? He writes for CCI and Dr Dobbs on all kind
>
>  > Yes, please. I'm quite desperate. I need to find the septic tank
>  > really soon, the architect that is doing the project of reshaping the
>  > house, is telling me he won't assume any responsibilities if we
dig on
>  > top of it--
>
> Send a mail to ed.nisley@p... and keep in mind that they are 6 hours
> behind on us....
>
>  > With the current delays, the basic project necessary to ask for a
>  > construction licence will be ready next month (if we find the tank).
>
> Just tell Ed and he'll have two friends in Europe. He's a nice guy and
> might have the one single clue you are overlooking.
>
>
> --
> Met vriendelijke groeten
>
> Jan Verhoeven
> member of http://wisclub.fol.nl

#29 From: jan verhoeven <jan@...>
Date: Sun Sep 14, 2003 11:13 pm
Subject: Re: Re: Mocka under Slackware Linux
jan@...
Send Email Send Email
 
Op Monday 15 September 2003 00:21 schreef Jesus:

  > > Ever heard of Ed Nisley? He writes for CCI and Dr Dobbs on all kind

  > Yes, please. I'm quite desperate. I need to find the septic tank
  > really soon, the architect that is doing the project of reshaping the
  > house, is telling me he won't assume any responsibilities if we dig on
  > top of it--

Send a mail to ed.nisley@... and keep in mind that they are 6 hours
behind on us....

  > With the current delays, the basic project necessary to ask for a
  > construction licence will be ready next month (if we find the tank).

Just tell Ed and he'll have two friends in Europe. He's a nice guy and
might have the one single clue you are overlooking.


--
Met vriendelijke groeten

Jan Verhoeven
member of http://wisclub.fol.nl

#28 From: "Jesus" <jconsuegra@...>
Date: Sun Sep 14, 2003 10:21 pm
Subject: Re: Mocka under Slackware Linux
jconsuegra
Offline Offline
Send Email Send Email
 
> Ever heard of Ed Nisley? He writes for CCI and Dr Dobbs on all kind
of
> matters. We exchange E-mails now and then about life in olland/New
York
> State. He could help you with a hint or two. If interested, let me
know and
> I will mail his E-mail address.
> He lives out of town so he too has a septic tank. His' is round, but
it is
> NOT under the square spot where the snow always melts first...

L.O.L.!! (very cute!)

Yes, please. I'm quite desperate. I need to find the septic tank
really soon, the architect that is doing the project of reshaping the
house, is telling me he won't assume any responsibilities if we dig on
top of it--

Didn't I told you about this project before?.
Currently we live in a small flat, 56 square meters, next to the sea.
Very nice place, but unfortunately second floor without an elevator.

My wife has a severe knee problem. She got surgery two years ago, and
the result is worse than before. So she can barely go up/downstairs.
When she got the surgery, she spent 7 weeks inside house, because she
was unable to get out ( due to the chalk).
We need to move asap to our new (second hand) house to be able to have
a new intervention on her knees without the previos restrictions, but
before that we have to modify the house to adapt to our
single-flat-level needs...

With the current delays, the basic project necessary to ask for a
construction licence will be ready next month (if we find the tank).

Till end of December we won't have the complete project (the detailed
construction project). January to look for a constructor, and a whole
year to finish the works... If we cannot find a constructor that could
  do the works in a shorter time, maybe we will need to rent a flat
with easier access... So any help will be very very welcome.

Thanks!
Saludos cordiales.
Jesus-

#27 From: jan verhoeven <jan@...>
Date: Sun Sep 14, 2003 9:31 pm
Subject: Re: Re: Mocka under Slackware Linux
jan@...
Send Email Send Email
 
Op Sunday 14 September 2003 22:44 schreef Jesus:

[Tube Sensor]
  > Is a pity it doen't work (yet). I haven't come to an emitter stable
  > enough and powerful enough to be received in the outside...
  > I'm currently trying a 27Mhz one and a 1 Mhz one. FM seems to be to
  > unstable.

Ever heard of Ed Nisley? He writes for CCI and Dr Dobbs on all kind of
matters. We exchange E-mails now and then about life in olland/New York
State. He could help you with a hint or two. If interested, let me know and
I will mail his E-maiol address.
He lives out of town so he too has a septic tank. His' is round, but it is
NOT under the square spot where the snow always melts first...

--
Met vriendelijke groeten

Jan Verhoeven
member of http://wisclub.fol.nl

#26 From: "Jesus" <jconsuegra@...>
Date: Sun Sep 14, 2003 8:44 pm
Subject: Re: Mocka under Slackware Linux
jconsuegra
Offline Offline
Send Email Send Email
 
> The directions on my site? Or our E-mail?
Everywhere, inlcuding this list.
I found everything accurate, so far.

> By the way: I sneaked to your WaterSite. What a cool idea, the
>septikus sensor!
Is a pity it doen't work (yet). I haven't come to an emitter stable
enough and powerful enough to be received in the outside...
I'm currently trying a 27Mhz one and a 1 Mhz one. FM seems to be to
unstable.

> file was a compiled IMPLEMENTATION MODULE. The header of the DEFINITION
> MODULE you just made is replaced by the name 'FOREIGN MODULE'.
>
> Thus, you can use C sources to work with Modula-2.
> If in doubt, you can send a mail to Boris Boesler, one of the
maintainers
> of Mocka. His E-mail address: boesler@i...
Thanks. I'll try all this before asking.
I'll keep you posted.
Best regards,
Jesus.

#25 From: jan verhoeven <jan@...>
Date: Fri Sep 12, 2003 8:49 pm
Subject: Re: Re: Mocka under Slackware Linux
jan@...
Send Email Send Email
 
Hello jesus,

Op Friday 12 September 2003 09:59 schreef Jesus:

  > Thanks to your directions, I've got now a running mocka system.

The directions on my site? Or our E-mail? If I have to change things on the
Mocka related webpages, I would like to hear it. I like to keep my pages up
to date and EVERY feedback is appreciated.

By the way: I sneaked to your WaterSite. What a cool idea, the septikus
sensor!

  > I can compile, link and run programs. The last (fixed) problem was
  > related to the "edit" script pointing to a wrong place, (so I wasn't
  > able to edit from inside the integrated environment).

I had to recompile the lister and unlister programs. And I changed the
editor to JED, which I prefer over VI.

  > Now comes the time where projects have to be done. :o)

Me too. I did my soup and emit programs. But I should write a compiler/
assembler for a Z-8681 MPU.

  > Do you know if there is some kind of module to interface to fltk?.

According to the manual, Mocka has a low-level functionality called FOREIGN
MODULEs.
Suppose you have a C program that does some tricks. You have it compiled
and linked. In it are functions you would like to use in Mocka.
Then you write a DEFINITION MODULE for that program, as if the C object
file was a compiled IMPLEMENTATION MODULE. The header of the DEFINITION
MODULE you just made is replaced by the name 'FOREIGN MODULE'.

Thus, you can use C sources to work with Modula-2.

I never tried it, however. And I should do so.

  > Fltk is C++, I don't know if the object model of Fltk can be mapped to
  >  Mocka. (Just thinkings).

With foreign modules it should be possible.

If in doubt, you can send a mail to Boris Boesler, one of the maintainers
of Mocka. His E-mail address: boesler@...

--
Met vriendelijke groeten

Jan Verhoeven
member of http://wisclub.fol.nl

#24 From: "Jesus" <jconsuegra@...>
Date: Fri Sep 12, 2003 7:59 am
Subject: Re: Mocka under Slackware Linux
jconsuegra
Offline Offline
Send Email Send Email
 
Jan:
Thanks to your directions, I've got now a running mocka system.
I can compile, link and run programs. The last (fixed) problem was
related to the "edit" script pointing to a wrong place, (so I wasn't
able to edit from inside the integrated environment).
Now comes the time where projects have to be done. :o)
Do you know if there is some kind of module to interface to fltk?.
I've seen impressive demos for fltk (instrument simulation)...
I've read the docs. The C interface looks like oriented to ANSI C,
(not C++). Anyway I just know C/C++ superficially...
Fltk is C++, I don't know if the object model of Fltk can be mapped to
  Mocka. (Just thinkings).

Thanks again.
Jesus-



--- In mocka@yahoogroups.com, "Jesus" <jconsuegra@y...> wrote:

> I'm back home, so I'll try it after dinner.
> Later,
> Jesus.
>
> > Jesus,
> >
> > Op Wednesday 10 September 2003 09:42 schreef Jesus:
> >
> >  > Right, but the shell commands are still available. I can

#23 From: jan verhoeven <jan@...>
Date: Thu Sep 11, 2003 10:59 pm
Subject: Re: Re: Not really Mocka related, but MODULA, (at least)
jan@...
Send Email Send Email
 
Jesus,

  > I forgot to mention that I'm still working with FST/GPM under DOS...
  > besides trying Mocka.

I sent an example file to your direct E-mail address.

  > A basic question:
  > Do you use 0 or 1 as a base coordinate? (I mean x:= 0..639 or 1..640)

I always start at zero.

  > >ScrX and ScrY were global.
  > To be taken into account.

In the text-window system, NOT in the graphic window system.
In VGAlib, the ScrX and ScrY are relative to the window. By accident I used
OOP here. Some years after I made this, I read a book about Linux and
discovered that I also wrote Object Oriented software...

  >>  http://www.fruttenboel.tomaatnet.nl/modula-2/vgalib3imp.html
  > Also gotten. Is just what I needed.

OK.


--
Met vriendelijke groeten

Jan Verhoeven
member of http://wisclub.fol.nl

#22 From: "Jesus" <jconsuegra@...>
Date: Thu Sep 11, 2003 8:31 pm
Subject: Re: Not really Mocka related, but MODULA, (at least)
jconsuegra
Offline Offline
Send Email Send Email
 
Jan:

> VGAlib was originally written for DOS, so it probably won't work
with Linux.
I forgot to mention that I'm still working with FST/GPM under DOS...
besides trying Mocka.


> I made my first overlapping windowing system (text windows) in
1994. In
> that time I defined a window by some parameters:
>
>  - topleft
>  - topright
>  - width
>  - height
>  - linetype
>  - pointer to a message
>
  I see my fault!. "topleft" and "topright"... I was thinking
on "topleft" and "downright", so I'm putting both to zero...
A basic question:
Do you use 0 or 1 as a base coordinate? (I mean x:= 0..639 or 1..640)


>ScrX and ScrY were global.
To be taken into account.


> If you go to http://asmjournal.freeservers.com and download issue
6, you
> can read my article about 'Programming the universal graphics mode'.
> Check it out.
Gotten.


> And I use a lot of comment in my ASM sources.
> Also, in the file 'vgalib3imp.html I do a lot of explaining about
the
> Modula-2 source. The direct URL of that file should be:
>
>  http://www.fruttenboel.tomaatnet.nl/modula-2/vgalib3imp.html
Also gotten. Is just what I needed.


> That should be possible. What I alwys do is:
>
>  - define framed windows for different purposes
>  - define frame-less header and footer windows
>
> The frameless windows look like lines of ordinary text.

> The MakeBox routine clears the screen.
> So the PlotText call must be AFTER the MakeBox call.

Ok, that is a lot of stuff to investigate.
Many Big Thanks!
Jesus.

#21 From: "Jesus" <jconsuegra@...>
Date: Thu Sep 11, 2003 8:17 pm
Subject: Re: Mocka under Slackware Linux
jconsuegra
Offline Offline
Send Email Send Email
 
Jan
Thanks again for your (always) invaluable clues.
I'm back home, so I'll try it after dinner.
Later,
Jesus.

> Jesus,
>
> Op Wednesday 10 September 2003 09:42 schreef Jesus:
>
>  > Right, but the shell commands are still available. I can
issue "pwd",
>  > and some others... That was what obfuscated me.
>
> Yes. the essence of the commands still works. But if you have
colors in
> 'ls' they don't work anymore.
>
>  > Almost working. There is still something wrong. AT first I was
able to
>  > mimic what you said, (i.e. >>i hello) and I was editing,
compiling and
>  > fixing hello. (There was an obvious error because Linux sees
upper and
>  > lowercase as different letters, I named hello.mi the source and
Hello
>  > the MODULE...).
>
> Mocka is very picky. So if you have, in your file:
>
>  MODULA Hello
>
> and that file is called hello.mi, you get a warning.
>
>  > I even got a hello.exe file, (BTW quite big, 256 Kb!...).
>
> Use 'strip hello' to get it a lot smaller. Strip removes the
debugging
> information.
>
>  > Trying to run it gave me no output at all. Hello is just an
>  > IMPORT of WriteString, and just a WriteString, so it should
work).
>
> You forget about buffered in- and output. As long as there was no
line
> terminator, Unix will keep the data in its buffer. So your hello.mi
source
> should read:
>
>   MODULE hello;
>
>   FROM InOut IMPORT WriteString, WriteLn;
>
>   BEGIN
>     WriteString ("Hello Jesus");
>     WriteLn
>   END hello.
>
> and nothing less! No LF, no message! Here's a session:
>
>   bash-2.05$ MC
>   Mocka 9903
>   >> p hello
>   .. Linking hello
>   >> q
>   bash-2.05$ ls -l hello*
>   -rwxr-xr-x    1 jan      users       34980 Sep 10 20:50 hello
>   -rw-r--r--    1 jan      users         114 Sep  9 18:07 hello.mi
>   -rw-r--r--    1 jan      users        2052 Sep  9 18:07 hello.o
>   -rw-r--r--    1 jan      users          21 Sep  9 18:07 hello.r
>   bash-2.05$ strip hello
>   bash-2.05$ ls -l hello
>   -rwxr-xr-x    1 jan      users       16196 Sep 10 20:51 hello
>   bash-2.05$
>
>  > Back after dinner I was unable to repeat the process, I always
got a
>  > message telling something was missing. Maybe related to PATH,
>
> I put the MC executable (the script file) in /usr/local/bin, which
is
> standard in my path.
>
>  > BTW, I'm using slackware 9.
>
> I am running Slackware 8.0. It's good.
>
>
> --
> Met vriendelijke groeten
>
> Jan Verhoeven
> member of http://wisclub.fol.nl

#20 From: jan verhoeven <jan@...>
Date: Wed Sep 10, 2003 7:58 pm
Subject: Re: Not really Mocka related, but MODULA, (at least)
jan@...
Send Email Send Email
 
Hello Jesus,

VGAlib was originally written for DOS, so it probably won't work with Linux.

  > I'm trying your nice VGALib, but I don't understand quite well the
  > parametes inside the InWin definition.

I made my first overlapping windowing system (text windows) in 1994. In
that time I defined a window by some parameters:

  - topleft
  - topright
  - width
  - height
  - linetype
  - pointer to a message

That was enough, I thought. When working with this set of functions, I had
a lot of trouble with the fact that the working screen coordinates were not
related to one specific window. ScrX and ScrY were global.
Also, there were some other small problems, so when I wrote my first VGAlib
(in A86 assembly language for DOS) I decided to start things better and I
defined a structure that contained all.

  > Is there any additional docs anywhere else?.

If you go to http://asmjournal.freeservers.com and download issue 6, you
can read my article about 'Programming the universal graphics mode'.

I did a lot of explaining there, which I cannot do better here. And the APJ
is a rich resource anyway. Check it out.

The VGAlib3 library was based entirely on the assembly language version.
And I use a lot of comment in my ASM sources.
Also, in the file 'vgalib3imp.html I do a lot of explaining about the
Modula-2 source. The direct URL of that file should be:

	 http://www.fruttenboel.tomaatnet.nl/modula-2/vgalib3imp.html

  > I'm writting a demo program to try to fix my ideas.
  > I want to define a window, put some text in, and draw an small box
  > underneath the text.

That should be possible. What I alwys do is:

  - define framed windows for different purposes
  - define frame-less header and footer windows

The frameless windows look like lines of ordinary text.

  > ----------------------=8---------------------------------------
  > MODULE Demo;
  > IMPORT VgaLib3;
  > FROM InOut IMPORT Read;
  > VAR
  >    myWin : VgaLib3.WinData;
  >    dummy : CHAR;
  >
  > BEGIN
  >
  >    myWin.TopX  := 0;
  >    myWin.TopY  := 0;
  >    myWin.Width := 640;
  >    myWin.Height := 400;
  >    myWin.CurX  := 120;
  >    myWin.CurY  := 12;
  >    myWin.DeltaX := 30;
  >    myWin.DeltaY := 40;
  >    myWin.Indent := 10;
  >
  >    myWin.BoxCol :=  VgaLib3.blue;
  >    myWin.TexCol :=  VgaLib3.YELLOW;
  >    myWin.BckCol :=  VgaLib3.white;
  >    myWin.MnuCol :=  VgaLib3.red;
  >
  >    VgaLib3.SetVGA;
  >    VgaLib3.SetColour (VgaLib3.black, VgaLib3.white);
  >    VgaLib3.PlotText (myWin, "Hello World of graphics!");
  >
  >    myWin.TopX  := 100;
  >    myWin.TopY  := 100;
  >    myWin.DeltaX := 30;
  >    myWin.DeltaY := 40;
  >    myWin.CurX  := 0;
  >    myWin.CurY  := 0;
  >
  >    VgaLib3.MakeBox(myWin);
  >    VgaLib3.FillBox(myWin);
  >
  >    Read(dummy);
  >
  >    VgaLib3.SetText;
  >
  >
  > END Demo.
  > --------------------=8--------------------------

The MakeBox routine clears the screen.
So the PlotText call must be AFTER the MakeBox call.


--
Met vriendelijke groeten

Jan Verhoeven
member of http://wisclub.fol.nl

#19 From: jan verhoeven <jan@...>
Date: Wed Sep 10, 2003 6:54 pm
Subject: Re: Re: Mocka under Slackware Linux
jan@...
Send Email Send Email
 
Jesus,

Op Wednesday 10 September 2003 09:42 schreef Jesus:

  > Right, but the shell commands are still available. I can issue "pwd",
  > and some others... That was what obfuscated me.

Yes. the essence of the commands still works. But if you have colors in
'ls' they don't work anymore.

  > Almost working. There is still something wrong. AT first I was able to
  > mimic what you said, (i.e. >>i hello) and I was editing, compiling and
  > fixing hello. (There was an obvious error because Linux sees upper and
  > lowercase as different letters, I named hello.mi the source and Hello
  > the MODULE...).

Mocka is very picky. So if you have, in your file:

	 MODULA Hello

and that file is called hello.mi, you get a warning.

  > I even got a hello.exe file, (BTW quite big, 256 Kb!...).

Use 'strip hello' to get it a lot smaller. Strip removes the debugging
information.

  > Trying to run it gave me no output at all. Hello is just an
  > IMPORT of WriteString, and just a WriteString, so it should work).

You forget about buffered in- and output. As long as there was no line
terminator, Unix will keep the data in its buffer. So your hello.mi source
should read:

   MODULE hello;

   FROM InOut IMPORT WriteString, WriteLn;

   BEGIN
     WriteString ("Hello Jesus");
     WriteLn
   END hello.

and nothing less! No LF, no message! Here's a session:

   bash-2.05$ MC
   Mocka 9903
   >> p hello
   .. Linking hello
   >> q
   bash-2.05$ ls -l hello*
   -rwxr-xr-x    1 jan      users       34980 Sep 10 20:50 hello
   -rw-r--r--    1 jan      users         114 Sep  9 18:07 hello.mi
   -rw-r--r--    1 jan      users        2052 Sep  9 18:07 hello.o
   -rw-r--r--    1 jan      users          21 Sep  9 18:07 hello.r
   bash-2.05$ strip hello
   bash-2.05$ ls -l hello
   -rwxr-xr-x    1 jan      users       16196 Sep 10 20:51 hello
   bash-2.05$

  > Back after dinner I was unable to repeat the process, I always got a
  > message telling something was missing. Maybe related to PATH,

I put the MC executable (the script file) in /usr/local/bin, which is
standard in my path.

  > BTW, I'm using slackware 9.

I am running Slackware 8.0. It's good.


--
Met vriendelijke groeten

Jan Verhoeven
member of http://wisclub.fol.nl

#18 From: "Jesus" <jconsuegra@...>
Date: Wed Sep 10, 2003 4:18 pm
Subject: Not really Mocka related, but MODULA, (at least)
jconsuegra
Offline Offline
Send Email Send Email
 
Jan:

I'm trying your nice VGALib, but I don't understand quite well the
parametes inside the InWin definition.
Is there any additional docs anywhere else?.
I'm writting a demo program to try to fix my ideas.
I want to define a window, put some text in, and draw an small box
underneath the text. I've come with this, but it does not do what I want:

----------------------=8---------------------------------------
MODULE Demo;
IMPORT VgaLib3;
FROM InOut IMPORT Read;
VAR
    myWin : VgaLib3.WinData;
    dummy : CHAR;

BEGIN


    myWin.TopX  := 0;
    myWin.TopY  := 0;
    myWin.Width := 640;
    myWin.Height := 400;
    myWin.CurX  := 120;
    myWin.CurY  := 12;
    myWin.DeltaX := 30;
    myWin.DeltaY := 40;
    myWin.Indent := 10;

    myWin.BoxCol :=  VgaLib3.blue;
    myWin.TexCol :=  VgaLib3.YELLOW;
    myWin.BckCol :=  VgaLib3.white;
    myWin.MnuCol :=  VgaLib3.red;

    VgaLib3.SetVGA;
    VgaLib3.SetColour (VgaLib3.black, VgaLib3.white);
    VgaLib3.PlotText (myWin, "Hello World of graphics!");


    myWin.TopX  := 100;
    myWin.TopY  := 100;
    myWin.DeltaX := 30;
    myWin.DeltaY := 40;
    myWin.CurX  := 0;
    myWin.CurY  := 0;

    VgaLib3.MakeBox(myWin);
    VgaLib3.FillBox(myWin);

    Read(dummy);

    VgaLib3.SetText;


END Demo.
--------------------=8--------------------------
Any clues?.
Thanks a lot.
Jesús.

#17 From: "Jesus" <jconsuegra@...>
Date: Wed Sep 10, 2003 7:42 am
Subject: Re: Mocka under Slackware Linux
jconsuegra
Offline Offline
Send Email Send Email
 
Jan:

> Still, after you get the >> prompt, you give one-letter commands.
Command
> line parameters are not needed.
Right, but the shell commands are still available. I can issue "pwd",
and some others... That was what obfuscated me.

>
> In your case do as follows:
>

>  jesus$Mocka <Enter>
>  >> i hello <Enter>
>
> and you are in the editor you specified, or else you get into VI.
>
> You do have a working system there.

Almost working. There is still something wrong. AT first I was able to
mimic what you said, (i.e. >>i hello) and I was editing, compiling and
fixing hello. (There was an obvious error because Linux sees upper and
lowercase as different letters, I named hello.mi the source and Hello
the MODULE...). I even got a hello.exe file, (BTW quite big, 256
Kb!...). Trying to run it gave me no output at all. Hello is just an
IMPORT of WriteString, and just a WriteString, so it should work).
After this, I went to dinner so I switched off the computer.
Back after dinner I was unable to repeat the process, I always got a
message telling something was missing. Maybe related to PATH, or some
other environment variable. I've to investigate further tonight.
BTW, I'm using slackware 9.
I'll keep posting.
Rergards,
Jesus.

#16 From: "Jesus" <jconsuegra@...>
Date: Tue Sep 9, 2003 10:26 pm
Subject: Re: Mocka under Slackware Linux
jconsuegra
Offline Offline
Send Email Send Email
 
Thaks a lot!.
I (wrongly) supposed I was under the bash shell with the command
prompt changed...
Jesus.

> Op Tuesday 09 September 2003 07:19 schreef Jesus:
>  > Hi Jan!
>  > After what I would define as a "successful" installation, (and after
>  > renamimg Mc to Mocka) all I get when I invoke "Mocka hello.mi"  is:
>  >
>  > Mocka 9905
>  >
>  >
>  > and I remain in a kind of shell that is telling me I'm doing wrong...
>  >
>  > Should I read the documentation first?.... ;0)
>
> It is only two pages....
>
> Still, after you get the >> prompt, you give one-letter commands.
Command
> line parameters are not needed.
>
> In your case do as follows:
>
>  jesus$Mocka <Enter>
>  >> i hello <Enter>
>
> and you are in the editor you specified, or else you get into VI.
>
> You do have a working system there.
>
> After editing, do a compile with:
>
>  >>c hello <Enter>
>
> if you run into problems (very unlikely), do as follows
>
>  >>i <Enter>
>
> which brings you in the editor again
>
> After correcting the source, just do
>
>  >> <Enter>
>
> for a recompile. That's all.
>
> i is for editing IMPLEMENTATION and 'normal' MODULES.
> c is for compiling normal modules
> d is for compiling DEFINITION MODULEs and the associated IMPLEMENTATION
>      MODULEs
>
> --
> Met vriendelijke groeten
>
> Jan Verhoeven
> member of http://wisclub.fol.nl

#15 From: jan verhoeven <jan@...>
Date: Tue Sep 9, 2003 4:10 pm
Subject: Re: Mocka under Slackware Linux
jan@...
Send Email Send Email
 
Op Tuesday 09 September 2003 07:19 schreef Jesus:
  > Hi Jan!
  > After what I would define as a "successful" installation, (and after
  > renamimg Mc to Mocka) all I get when I invoke "Mocka hello.mi"  is:
  >
  > Mocka 9905
  >
  >
  > and I remain in a kind of shell that is telling me I'm doing wrong...
  >
  > Should I read the documentation first?.... ;0)

It is only two pages....

Still, after you get the >> prompt, you give one-letter commands. Command
line parameters are not needed.

In your case do as follows:

  jesus$Mocka <Enter>
  >> i hello <Enter>

and you are in the editor you specified, or else you get into VI.

You do have a working system there.

After editing, do a compile with:

  >>c hello <Enter>

if you run into problems (very unlikely), do as follows

  >>i <Enter>

which brings you in the editor again

After correcting the source, just do

  >> <Enter>

for a recompile. That's all.

i is for editing IMPLEMENTATION and 'normal' MODULES.
c is for compiling normal modules
d is for compiling DEFINITION MODULEs and the associated IMPLEMENTATION
      MODULEs

--
Met vriendelijke groeten

Jan Verhoeven
member of http://wisclub.fol.nl

#14 From: "Jesus" <jconsuegra@...>
Date: Tue Sep 9, 2003 5:19 am
Subject: Mocka under Slackware Linux
jconsuegra
Offline Offline
Send Email Send Email
 
Hi Jan!
After what I would define as a "successful" installation, (and after
renamimg Mc to Mocka) all I get when I invoke "Mocka hello.mi"  is:

Mocka 9905
>>

and I remain in a kind of shell that is telling me I'm doing wrong...

Should I read the documentation first?.... ;0)

Regards,
Jesus-

#13 From: "Jesus" <jconsuegra@...>
Date: Mon Sep 8, 2003 1:56 pm
Subject: Hi!
jconsuegra
Offline Offline
Send Email Send Email
 
Hi Jan!.
After some unsuccessful tries of emulating Linux and so Mocka, I've
set up an old PC (Pentium 200) with Slackware 9. I plan to hopefully
install Mocka along this week, (once my official "compromises"
finished).
I'll tell you how is going.
Jesus.

#12 From: jan verhoeven <jan@...>
Date: Wed Jul 2, 2003 7:20 pm
Subject: Re: Re: Mocka on CygWin
jan@...
Send Email Send Email
 
Op Wednesday 02 July 2003 14:32 schreef Jesus:

  > The problem here is that Mocka is Modula-2 source, and we need C
  > source....

Well, many Mocka system files are socalled 'FOREIGN MODULES'. Which means
that they are C library files that were imported to te Mocka system. In the
manual is an example of these Foreign modules.


--
Met vriendelijke groeten

Jan Verhoeven
member of http://wisclub.fol.nl

#11 From: "Jesus" <jconsuegra@...>
Date: Wed Jul 2, 2003 12:32 pm
Subject: Re: Mocka on CygWin
jconsuegra
Offline Offline
Send Email Send Email
 
Oh, I'm sorry,I'm afraid I didn't explain it very well:
Cygwin is not an emulator but a set of source C files and windows
utilities that allow mapping OS Linux calls to WIndows ones, so you
can compile C source files coming from Linux (Like Xfree) without
changing anything...
The problem here is that Mocka is Modula-2 source, and we need C
source....
Mmmm... I've seen somewhere a Modula to C translator....
Let me investigate further....
(And thanks for the clue!).
Jesus.

> That sounds impressive. If Xfree runs under CygWin under MS
> Windows, it is
> a very good emulator. Then it SHOULD run Mocka as well.

#10 From: jan verhoeven <jan@...>
Date: Tue Jul 1, 2003 8:22 pm
Subject: Re: Re: Mocka on CygWin
jan@...
Send Email Send Email
 
Op Tuesday 01 July 2003 00:06 schreef Jesus:

  > I've been able of runnig Xfree just compiling from the source with the
  > standard Makefile... I'll keep trying, (just for fun).

That sounds impressive. If Xfree runs under CygWin under MS Windows, it is
a very good emulator. Then it SHOULD run Mocka as well.

According to Boris Boessler of Karlsruhe University it should be enough to
do as follows:

  > Von gcc aus natürlich nicht. MOCKA ist in Modula-2 geschrieben! Auf
  > einem Linux-System muß man den Compiler mit der Option -S
  > (Assember-Sourcen nicht löschen) übersetzen. Dann diese auf qnx6
  > mit einem Assembler assemblieren, dann linken und schießlich hoffen.
  > Das sollte klappen.
  >
  > Boris Boesler

  - on a running Linux system, recompile all modules with the -S option
  - put all assembler files on a floppy disk and transport to Cygwin system
  - assemble the assembler files to object files
  - link them together

and keep your fingers crossed....


[Bochs]
  > I got it running under windows (winXP), but runs on top of most
  > platforms. It's quite good for running standalone programs or
  > different operating systems by emulating x86 hardware. Very nice to
  > avoid crashes. See by yourself at
  >
  > http://bochs.sourceforge.net

I only heard of bochs in combination with Minix. I did not know it was a
stable product for most operating systems.


--
Met vriendelijke groeten

Jan Verhoeven
member of http://wisclub.fol.nl

#9 From: "Jesus" <jconsuegra@...>
Date: Mon Jun 30, 2003 10:06 pm
Subject: Re: Mocka on CygWin
jconsuegra
Offline Offline
Send Email Send Email
 
> The Mocka compiler heavily relies on an underlying Unix system.
So it does CygWin, but it does add a kind of abstraction layer on
top of windows giving a kind of UNIX under windows. I've been able
of runnig Xfree just compiling from the source with the standard
Makefile... I'll keep trying, (just for fun).

>  > 2. I've been able to download and run Debian 2.2 under Bochs,
just
>  > trying to figure out how to put the mocka files inside the disk
>  > image file....
>
> And what does Bochs run under? Windows? Or Minix?
I got it running under windows (winXP), but runs on top of most
platforms. It's quite good for running standalone programs or
different operating systems by emulating x86 hardware. Very nice to
avoid crashes. See by yourself at

http://bochs.sourceforge.net

Best regards,
Jesús.

#8 From: jan verhoeven <jan@...>
Date: Mon Jun 30, 2003 9:14 pm
Subject: Re: Re: Mocka on CygWin
jan@...
Send Email Send Email
 
Op Monday 30 June 2003 19:29 schreef Jesus:

  > Things I've been thinking about during my trip:
  > 1. If we got the sources in Modula2, why not using another Modula2
  > compiler already running under the platform? (I mean FST or GPM)

Problem with noth Mocka and FST is that they are not ISO compilers. Mocka
comes very close to Wirth's definitions and does not support any ISO
functions.
FST also had no ISO extensiuons but it has special features which are non
standard just as well.
The Mocka compiler heavily relies on an underlying Unix system. So porting
it to another OS is 'difficult at best'.

  > 2. I've been able to download and run Debian 2.2 under Bochs, just
  > trying to figure out how to put the mocka files inside the disk
  > image file....

And what does Bochs run under? Windows? Or Minix?

--
Met vriendelijke groeten

Jan Verhoeven
member of http://wisclub.fol.nl

#7 From: "Jesus" <jconsuegra@...>
Date: Mon Jun 30, 2003 5:29 pm
Subject: Re: Mocka on CygWin
jconsuegra
Offline Offline
Send Email Send Email
 
Things I've been thinking about during my trip:
1. If we got the sources in Modula2, why not using another Modula2
compiler already running under the platform? (I mean FST or GPM)
2. I've been able to download and run Debian 2.2 under Bochs, just
trying to figure out how to put the mocka files inside the disk
image file....
Best regards,
Jesus.

> > Fiffi wanted to recompile Mocka under QNX-6 but he failed until
now.
> >

#6 From: "Jesus" <jconsuegra@...>
Date: Sun Jun 22, 2003 10:11 pm
Subject: Re: Mocka on CygWin
jconsuegra
Offline Offline
Send Email Send Email
 
I'm afraid is the fish that eats it's own tail...
ELF executables doesn't run under Cygwin, so I have no way to start
the cycle...
(I was supposing the base language was C... What wrong I was!).
Windows executables are not freeware at all, so I should explore the
second alternative, to run it under Linux in a Bochs box...
Thanks anyway.
Jesús.

--- In mocka@yahoogroups.com, jan verhoeven <jan@v...> wrote:
> Op Sunday 22 June 2003 00:37 schreef Jesus:
>
>  > I've just downloaded the sources of Mocka for Linux.
>  > There is no Makefile at all...
>
> Right. Just follow the instructions from their file called README.
If you
> have installed the midnight commander, you must change some lines
in the
> file 'Makefile'. You can find a working version of Makefile at
fruttenboel.
>
> Next, make sure the Mocka 'mc' script gets another name, for
example 'MC'.
> Or 'mocka'. But not 'Mc' since that is the name of the actual
compiler.
>
> Next make sure you recompile just about any additional program,
like Lister
> and Unlister...
>
>  > Do you know where can I find directions for compiling it?.
>
> It compiles itself. But huge parts are already compiled.
>
> Fiffi wanted to recompile Mocka under QNX-6 but he failed until now.
>
>
> --
> Met vriendelijke groeten
>
> Jan Verhoeven
> member of http://wisclub.fol.nl

#5 From: jan verhoeven <jan@...>
Date: Sun Jun 22, 2003 7:32 pm
Subject: Re: Mocka on CygWin
jan@...
Send Email Send Email
 
Op Sunday 22 June 2003 00:37 schreef Jesus:

  > I've just downloaded the sources of Mocka for Linux.
  > There is no Makefile at all...

Right. Just follow the instructions from their file called README. If you
have installed the midnight commander, you must change some lines in the
file 'Makefile'. You can find a working version of Makefile at fruttenboel.

Next, make sure the Mocka 'mc' script gets another name, for example 'MC'.
Or 'mocka'. But not 'Mc' since that is the name of the actual compiler.

Next make sure you recompile just about any additional program, like Lister
and Unlister...

  > Do you know where can I find directions for compiling it?.

It compiles itself. But huge parts are already compiled.

Fiffi wanted to recompile Mocka under QNX-6 but he failed until now.


--
Met vriendelijke groeten

Jan Verhoeven
member of http://wisclub.fol.nl

#4 From: "Jesus" <jconsuegra@...>
Date: Sat Jun 21, 2003 10:37 pm
Subject: Mocka on CygWin
jconsuegra
Offline Offline
Send Email Send Email
 
I've just downloaded the sources of Mocka for Linux.
There is no Makefile at all...
Do you know where can I find directions for compiling it?.
Other Linux sources compile quite well under CygWin.
Regards,
Jesús.

#3 From: "Jesus" <jconsuegra@...>
Date: Wed Jun 18, 2003 12:05 pm
Subject: Re: Mocka on alternative platforms
jconsuegra
Offline Offline
Send Email Send Email
 
You're welcome.
I'll do my best.
Jesus.

> I took the liberty to make you a moderator too. You have full
privileges
> and I ask you to use them to your best knowledge. If you think you
can
> improve things on this list, just do it.
>
> --
> Met vriendelijke groeten
>
> Jan Verhoeven
> member of http://wisclub.fol.nl

#2 From: jan verhoeven <jan@...>
Date: Mon Jun 16, 2003 7:34 pm
Subject: Re: Mocka on alternative platforms
jan@...
Send Email Send Email
 
Op Monday 16 June 2003 18:24 schreef Jesus:

  > Hi everybody,
  > Just thinking in a way of using Mocka on Wintel platforms.
  >
  > 1. Start Linux under Bochs emulator, run Mocka from it.
  > 2. Try to compile it under Cygwin...
  >
  > Regards,
  > Jesus.

As you will be able to see by going to 'My groups' after logging in to
Yahoo, we are the only two members of this group, as for now.

I took the liberty to make you a moderator too. You have full privileges
and I ask you to use them to your best knowledge. If you think you can
improve things on this list, just do it.

--
Met vriendelijke groeten

Jan Verhoeven
member of http://wisclub.fol.nl

#1 From: "Jesus" <jconsuegra@...>
Date: Mon Jun 16, 2003 4:24 pm
Subject: Mocka on alternative platforms
jconsuegra
Offline Offline
Send Email Send Email
 
Hi everybody,
Just thinking in a way of using Mocka on Wintel platforms.

1. Start Linux under Bochs emulator, run Mocka from it.
2. Try to compile it under Cygwin...

Regards,
Jesus.

Messages 1 - 30 of 707   Newest  |  < Newer  |  Older >  |  Oldest
Advanced
Add to My Yahoo!      XML What's This?

Copyright © 2009 Yahoo! Inc. All rights reserved.
Privacy Policy - Terms of Service - Guidelines - Help