Subject:
|
Re: Displaying info while debugging
|
Newsgroups:
|
lugnet.robotics.rcx.pbforth
|
Date:
|
Sat, 15 Jun 2002 23:41:24 GMT
|
Viewed:
|
2536 times
|
| |
| |
In lugnet.robotics.rcx.pbforth, Ralph Hempel writes:
> Yes, rcxTcl is probably looking at the data
> coming in on the IR and buffering it until there
> is a pause.
Hi Ralph,
You may be right because if I insert KEY somewhere in the loop, it displays
the information at each pass in the loop.
> How are you making out otherwise with pbForth?
Otherwise, I like pbForth a lot. I'm still learning the particularities of
this implementation (what's in, what's not). The good thing about Forth is
that when something is not there, you can add it easily. So, I like the idea
that you don't include every bells and whistles as part of the core system;
it keeps it small and it leaves room for us to code a little bit...
So, after I read the message #502 from M. David Rojas, I decided to attack a
few words that would help people debug their programs. I wrote the words
WORDS and DUMP which were pretty easy, plus a few words to convert from CFA
to NFA, etc. I'm working on the word SEE, which I don't find easy at all. I
don't know if I'll get it done. By the way, I looked but couldn't find a ANS
compatible definition for SEE.
Problems I encountered? Not much.
- Well, SAVE-SYSTEM still doesn't work, and I suspect that the Terminal
Emulator is responsible, but it's only a guess.
- To be able to Copy and Paste from/to RcxTcl would be great :o)
- I couldn't access the word 'Latest' from Forth, so I found the address and
defined the word, but that would not survive a new version of pbForth if you
mode things around. Is there a way to access it and other system defined words?
- There's a problem when we create a word that calls another word with the
same name (overriding a definition). Example:
: test1 3 5 * ; \ Forgot to print the result, so...
: test1 test1 . ; \ now I print the result without starting all over...
When we execute test1, it freezes. Probably because the second definition
compiled itself instead of the previous definition. No big deal anyway.
- Finally, I couldn't find a word like KEY? that would check the keyboard
and return true if a key was pressed (false if not). KEY works fine but
waits for a key to be pressed while KEY? would not wait. Not very usefull on
the RCX but it helps when debugging.
That's it so far! I don't want to complain here; I'm just jumping thru the
door you opened when you asked your question :o))
Bottom line, I think pbForth is great.
Thanks a lot
Bye
Mario
In lugnet.robotics.rcx.pbforth, Ralph Hempel writes:
> Yes, rcxTcl is probably looking at the data
> coming in on the IR and buffering it until there
> is a pause.
>
> I'll check it out this week and send out an update
> if I can....
>
> How are you making out otherwise with pbForth?
>
> Cheers, Ralph
>
> > -----Original Message-----
> > From: news-gateway@lugnet.com [mailto:news-gateway@lugnet.com]On Behalf
> > Of Mario Beaulieu
> > Sent: Saturday, June 15, 2002 5:15 PM
> > To: lugnet.robotics.rcx.pbforth@lugnet.com
> > Subject: Re: Displaying info while debugging
> >
> >
> > Ralph,
> >
> > Coult it be that the console (RcxTcl) does that (and not pbForth)?
> >
> > Thanks
> >
> > Mario
> >
> >
> >
> > In lugnet.robotics.rcx.pbforth, Mario Beaulieu writes:
> > > Hi,
> > >
> > > I would like to be able to show some info on the Terminal Emulator while
> > > debugging, but it seems that pbForth "keeps" the info until the program is
> > > over. For example:
> > >
> > > : TEST 100 0 DO I CR . 7 1 0 MOTOR_SET LOOP 7 4 0 MOTOR_SET ;
> > >
> > > will start the motor a while before the 100 numbers are displayed. Actually,
> > > the numbers will appear at about the same time the motor stops. Is there a
> > > way I can make it show each number before the program is over?
> > >
> > > Thanks
> > >
> > > Mario
> >
|
|
Message has 1 Reply: | | Re: Displaying info while debugging
|
| I agree that pbForth is GREAT! Hopefully you're forwarding all your debugging words to Mr. Hempel. I noticed on the c.l.f. newsgroup in a message called 'Small terminal emulator' that Lionel Rogers is writing an introduction to programming book (...) (22 years ago, 16-Jun-02, to lugnet.robotics.rcx.pbforth)
|
Message is in Reply To:
| | RE: Displaying info while debugging
|
| Yes, rcxTcl is probably looking at the data coming in on the IR and buffering it until there is a pause. I'll check it out this week and send out an update if I can.... How are you making out otherwise with pbForth? Cheers, Ralph (...) (22 years ago, 15-Jun-02, to lugnet.robotics.rcx.pbforth)
|
12 Messages in This Thread:
- Entire Thread on One Page:
- Nested:
All | Brief | Compact | Dots
Linear:
All | Brief | Compact
This Message and its Replies on One Page:
- Nested:
All | Brief | Compact | Dots
Linear:
All | Brief | Compact
|
|
|
|