Talk About Network



Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Programming > Basic Misc > Re: Interpreter...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 44 of 63 Topic 1431 of 1467
Post > Topic >>

Re: Interpreter for old basic programs from the line number era

by "Auric__" <not.my.real@[EMAIL PROTECTED] > Mar 12, 2008 at 06:06 PM

On Tue, 11 Mar 2008 19:57:35 GMT,  wrote:

> On 11 Mrz., 18:21, "Auric__" <not.my.r...@[EMAIL PROTECTED]
> wrote:
>> On Sat, 08 Mar 2008 09:20:26 GMT,  wrote:
>> > On 7 Mrz., 18:12, "Auric__" <not.my.r...@[EMAIL PROTECTED]
> wrote:
>> >> On Thu, 06 Mar 2008 20:05:46 GMT,  wrote:
>>
>> >> (FYI, took a bit over 6 minutes to d/l your 964 kib file.)
>> > So you actually managed to download it. Did your compile
>> > succeed? Do you have any comments about Bas7 (or the other
>> > examples)? I really need any feedback I can get.
>>
>> The compile went fine. I had to edit the makefile to point at my
>> libXll, because the X11 lib dir isn't in $PATH, and isn't the same
>> as what you have in yours (mine is /usr/X11R6/lib, with links in
>> /usr/lib/X11 and /usr/X11/lib).
>
> Maybe I should add some code to 'make depend' which finds out
> where the X11 lib is. A ./configure script would probably be
> the right solution. But until now I have not used ./configure
> since it works only on unix inspired operating systems.

Well... 'configure' *might* work under a Cygwin system (never 
tried)... but then, the vast majority of Windows systems don't have X 
anyway... or you could just include a note in README to the effect of 
"edit 'makefile' to include your X11 lib dir in the 'LIB' variable".

>> During the compile there were *many* warnings about
>> parameters being passed as different types due to prototypes
>> (mostly double -> float and signed/unsigned) but no errors.
>>
>> I ran a few sample programs (castle.sd7 brought back some fond
>> memories of swearing at the screen because I'd just been killed
>> again). I ran about a dozen old BASICA/GWBASIC sample programs
>> through bas7 without any obvious errors, but with most of them it
>> was kinda hard to tell, and the logs often weren't of any help.
>
> Error messages in bas7.log start with ' ***** ' (without the
> quotes). Do you have suggestions to make the logs more
> helpful?

Well... the format strikes me as a bit odd. If I were to do this sort 
of logging, I'd probably do it like this:
---log---
  10 IF X = FOO THEN 20
  *** X = 1
  *** FOO = 2
  *** X <> FOO
---log---
....but that's just me.

>> I have 2 suggestions and a question:
>> 1) Add some way to pause at the end of a bas7 program without
>> specifically adding a pause to the .bas file.
>
> Since some programs need this, while in other programs
> it is not useful, it IMHO cannot be done automatically.
> I think an option for Bas7 would be the solution for that.

That's what I meant -- something like:
  ./hi bas7 --pause-when-done foo.bas

I'd offer to do it for you, but I'm notorious for promising to do 
something and then taking months for a tiny fix. (You should see my 
projects' timelines: A. whenever; B. whenever; C. whenever. I have one 
that's been in the works for three years now with little to show for 
it.)

>> 2) For .sd7 programs that open a new window (such as castle.sd7)
>> add a way to keep that window open after the end of the script.
>
> Why should a window stay open when the program is finished?
> What do you want to do with such an open window?
> Did the program quit without giving you a chance to see the
> reason for it?
> That would be a bug in castle.sd7 and not in the interpreter.
> I thought that the castle.sd7 program asks for confirmation
> before it ends (and the interpreter removes all its windows).

I didn't mean castle.sd7 specifically; the question is really just 
another version of #1 and can be safely ignored. (I was tired 
yesterday; they seemed to be seperate at the time -- I'm still tired 
today but have less blood in my caffeine system than yesterday.) As I 
said before, everything that I tried ran apparently without error.

>> q) I notice that bas7 apparently doesn't support MS-style colors.
>> Are colors supported at all?
>
> Colors are supported in graphic programs (the graphic support
> is not finished: YMMV).

Assuming that castle.sd7 is X and not console, then yes, it works. I 
meant specifically text-mode colors, sorry.

> The various unix consoles do not
> really have a guaranteed color support.

I know, but you might want to think about (optionally?) linking in a 
curses lib.

> Therefore the Seed7
> text output at the console does not have color support.
> But in Seed7 there are emulated text consoles in a graphic
> window. This text consoles have also color support. Until now
> I do not use this feature for Bas7. I will look at it.

It was just a thought. One of the demos I ran was an old text-mode 
color demo so I thought I'd ask.

-- 
Fool, money, parted.




 63 Posts in Topic:
Interpreter for old basic programs from the line number era
thomas.mertes@[EMAIL PROT  2008-03-03 11:12:00 
Re: Interpreter for old basic programs from the line number era
Paul Bartlett <bartlet  2008-03-03 20:07:01 
Re: Interpreter for old basic programs from the line number era
rebel <me@[EMAIL PROTE  2008-03-04 10:16:31 
Re: Interpreter for old basic programs from the line number era
"R.Nicholson" &  2008-03-03 18:23:10 
Re: Interpreter for old basic programs from the line number era
rebel <me@[EMAIL PROTE  2008-03-05 10:44:45 
Re: Interpreter for old basic programs from the line number era
thomas.mertes@[EMAIL PROT  2008-03-08 01:56:45 
Re: Interpreter for old basic programs from the line number era
ArarghMail803NOSPAM@[EMAI  2008-03-08 15:47:56 
Re: Interpreter for old basic programs from the line number era
thomas.mertes@[EMAIL PROT  2008-03-04 00:05:17 
Re: Interpreter for old basic programs from the line number era
"R.Nicholson" &  2008-03-04 19:09:26 
Re: Interpreter for old basic programs from the line number era
Happy Trails <nomail@[  2008-03-04 22:46:12 
Re: Interpreter for old basic programs from the line number era
"R.Nicholson" &  2008-03-04 21:06:46 
Re: Interpreter for old basic programs from the line number era
Happy Trails <nomail@[  2008-03-05 11:07:24 
Re: Interpreter for old basic programs from the line number era
thomas.mertes@[EMAIL PROT  2008-03-05 00:04:10 
Re: Interpreter for old basic programs from the line number era
"Auric__" <n  2008-03-06 17:12:03 
Re: Interpreter for old basic programs from the line number era
thomas.mertes@[EMAIL PROT  2008-03-06 12:05:46 
Re: Interpreter for old basic programs from the line number era
"Auric__" <n  2008-03-07 17:12:49 
Re: Interpreter for old basic programs from the line number era
ArarghMail803NOSPAM@[EMAI  2008-03-07 13:38:51 
Re: Interpreter for old basic programs from the line number era
"Auric__" <n  2008-03-07 23:58:56 
Re: Interpreter for old basic programs from the line number era
ArarghMail803NOSPAM@[EMAI  2008-03-07 18:53:19 
Re: Interpreter for old basic programs from the line number era
"Auric__" <n  2008-03-10 17:46:12 
Re: Interpreter for old basic programs from the line number era
ArarghMail803NOSPAM@[EMAI  2008-03-10 18:17:41 
Re: Interpreter for old basic programs from the line number era
"Auric__" <n  2008-03-11 17:01:43 
Re: Interpreter for old basic programs from the line number era
ArarghMail803NOSPAM@[EMAI  2008-03-11 17:43:05 
Re: Interpreter for old basic programs from the line number era
"Auric__" <n  2008-03-12 17:35:00 
Re: Interpreter for old basic programs from the line number era
ArarghMail803NOSPAM@[EMAI  2008-03-12 14:22:49 
Re: Interpreter for old basic programs from the line number era
"Auric__" <n  2008-03-13 15:10:08 
Re: Interpreter for old basic programs from the line number era
ArarghMail803NOSPAM@[EMAI  2008-03-13 19:36:55 
Re: Interpreter for old basic programs from the line number era
"Auric__" <n  2008-03-14 17:26:15 
Re: Interpreter for old basic programs from the line number era
ArarghMail803NOSPAM@[EMAI  2008-03-14 18:01:00 
Re: Interpreter for old basic programs from the line number era
Guy Macon <http://www.  2008-03-06 20:58:28 
Re: Interpreter for old basic programs from the line number era
"Tom Lake" <  2008-03-06 16:02:16 
Re: Interpreter for old basic programs from the line number era
Guy Macon <http://www.  2008-03-06 21:26:33 
Re: Interpreter for old basic programs from the line number era
"Judson McClendon&qu  2008-03-06 15:25:02 
Re: Interpreter for old basic programs from the line number era
ArarghMail803NOSPAM@[EMAI  2008-03-06 16:58:58 
Re: Interpreter for old basic programs from the line number era
Vic Drastik <user@[EMA  2008-03-08 23:33:53 
Re: Interpreter for old basic programs from the line number era
Vic Drastik <user@[EMA  2008-03-08 23:51:54 
Re: Interpreter for old basic programs from the line number era
thomas.mertes@[EMAIL PROT  2008-03-06 15:16:17 
Re: Interpreter for old basic programs from the line number era
thomas.mertes@[EMAIL PROT  2008-03-08 01:20:26 
Re: Interpreter for old basic programs from the line number era
"Auric__" <n  2008-03-10 17:51:46 
Re: Interpreter for old basic programs from the line number era
"Auric__" <n  2008-03-11 17:21:41 
Re: Interpreter for old basic programs from the line number era
"Auric__" <n  2008-03-11 17:23:33 
Re: Interpreter for old basic programs from the line number era
thomas.mertes@[EMAIL PROT  2008-03-08 01:38:33 
Re: Interpreter for old basic programs from the line number era
thomas.mertes@[EMAIL PROT  2008-03-11 12:57:35 
Re: Interpreter for old basic programs from the line number era
"Auric__" <n  2008-03-12 18:06:43 
Re: Interpreter for old basic programs from the line number era
Warren Gay <snark@[EMA  2008-03-13 15:19:22 
Re: Interpreter for old basic programs from the line number era
thomas.mertes@[EMAIL PROT  2008-03-13 03:41:59 
Re: Interpreter for old basic programs from the line number era
Warren Gay <snark@[EMA  2008-03-13 15:36:05 
Re: Interpreter for old basic programs from the line number era
Thomas Dickey <dickey@  2008-03-14 11:11:41 
Re: Interpreter for old basic programs from the line number era
Charmed Snark <snark@[  2008-03-14 15:28:29 
Re: Interpreter for old basic programs from the line number era
Thomas Dickey <dickey@  2008-03-14 22:37:27 
Re: Interpreter for old basic programs from the line number era
Charmed Snark <snark@[  2008-03-15 04:15:36 
Re: Interpreter for old basic programs from the line number era
Thomas Dickey <dickey@  2008-03-16 13:10:27 
Re: Interpreter for old basic programs from the line number era
Thomas Dickey <dickey@  2008-03-14 16:03:56 
Re: Interpreter for old basic programs from the line number era
thomas.mertes@[EMAIL PROT  2008-03-14 08:41:36 
Re: Interpreter for old basic programs from the line number era
Charmed Snark <snark@[  2008-03-14 15:57:50 
Re: Interpreter for old basic programs from the line number era
Eric <englere_geo@[EMA  2008-03-18 09:11:26 
Re: Interpreter for old basic programs from the line number era
Charmed Snark <snark@[  2008-03-18 19:52:03 
Re: Interpreter for old basic programs from the line number era
winston19842005 <bjjly  2008-03-18 18:18:44 
Re: Interpreter for old basic programs from the line number era
Eric <englere_geo@[EMA  2008-03-18 20:41:12 
Re: Interpreter for old basic programs from the line number era
"winston19842005@[EM  2008-03-18 22:13:40 
Re: Interpreter for old basic programs from the line number era
Charmed Snark <snark@[  2008-03-19 15:32:27 
Re: Interpreter for old basic programs from the line number era
thomas.mertes@[EMAIL PROT  2008-03-19 12:35:28 
Re: Interpreter for old basic programs from the line number era
Derek <derekrss@[EMAIL  2008-03-19 22:37:05 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Thu May 22 14:08:08 CDT 2008.