Re: [Simh] off-topic basic translator

2015-08-04 Thread Göran Åhling
Den 2015-08-04 kl. 17:52, skrev Dan Gahlinger: Does anyone have or know where I can get a copy of the Vax Basic translator? Especially for VMS or windows or something? I'd like to convert my old Vax Basic programs to something usable on modern systems, but while Vax Basic is simple enough th

Re: [Simh] off-topic basic translator

2015-08-04 Thread Rich Alderson
> From: Ken Cornetet > Date: Tue, 4 Aug 2015 20:55:06 + > Perl has goto. Just sayin' *Pascal* has goto. > Writing a VAX basic to perl translator sounds like fun, and when you are > done, you'd have learned a usable language. Yes, and one in which white space is not syntactically significan

Re: [Simh] off-topic basic translator

2015-08-04 Thread Stephen Van Berg
I would second using Perl, it would probably be the easiest translator target as a lot of the typing and string manipulation may require less work than something like C/C++ or Pascal. Original message From: Ken Cornetet mailto:ken.corne...@kimballelectronics.com>> Date: 08

Re: [Simh] off-topic basic translator

2015-08-04 Thread Kevin Handy
C++ hs std::string which handles most of the basic strings, except for those in maps and other such structures. It also has GOTO, and you can implement GOSUB without too much trouble You just hve to be careful about jumping over definitions.. On Tue, Aug 4, 2015 at 3:04 PM, Ken Cornetet < ken.cor

Re: [Simh] off-topic basic translator

2015-08-04 Thread Ken Cornetet
Well, perl is often described as a write-only language. Perfect as the output of a translator! From: Dan Gahlinger [mailto:dgahl...@hotmail.com] Sent: Tuesday, August 04, 2015 4:59 PM To: Ken Cornetet; simh@trailing-edge.com Subject: Re: [Simh] off-topic basic translator Per is not a usable lang

Re: [Simh] off-topic basic translator

2015-08-04 Thread Dan Gahlinger
Per is not a usable language. Lol Sent from my Samsung Galaxy smartphone. Original message From: Ken Cornetet Date: 08-04-2015 4:55 PM (GMT-05:00) To: simh@trailing-edge.com Subject: Re: [Simh] off-topic basic translator Perl has goto. Just sayin' Writing a VAX basic to pe

Re: [Simh] off-topic basic translator

2015-08-04 Thread Ken Cornetet
Perl has goto. Just sayin' Writing a VAX basic to perl translator sounds like fun, and when you are done, you'd have learned a usable language. From: Simh [mailto:simh-boun...@trailing-edge.com] On Behalf Of Dan Gahlinger Sent: Tuesday, August 04, 2015 4:38 PM To: Kevin Handy; Tom Morris Cc: sim

Re: [Simh] off-topic basic translator

2015-08-04 Thread Dan Gahlinger
Then I'll have to do it myself by hand, which from the manual doesn't look that bad. I'll test the vb2py script but I won't hold my breath. I'm not going to write my own to translate a paltry dozen or so programs (even if some of them are long). I shudder at having to translate "goto" :) But fro

Re: [Simh] off-topic basic translator

2015-08-04 Thread Kevin Handy
It won't help you. If you look at the section "U*ntranslatable Language Features*" it specifically mentions that MAP, COMMON, and FIELD, and MAT statements are not habdled. On Tue, Aug 4, 2015 at 2:19 PM, Tom Morris wrote: > If you want to target Python, you might look at using something like vb

Re: [Simh] off-topic basic translator

2015-08-04 Thread Tom Morris
If you want to target Python, you might look at using something like vb2py as a starting point. http://vb2py.sourceforge.net/ Tom On Tue, Aug 4, 2015 at 3:34 PM, Dan Gahlinger wrote: > I was thinking of this one: > http://h71000.www7.hp.com/commercial/basic/t12/t12_pro.html > so definitely ther

Re: [Simh] off-topic basic translator

2015-08-04 Thread Dan Gahlinger
I was thinking of this one: http://h71000.www7.hp.com/commercial/basic/t12/t12_pro.html so definitely there was one, it's discontinued though. I don't know what to do with MAP or MAT statements, otherwise I could do most of it myself. C or C++ is not an ideal language, I was thinking of easier

Re: [Simh] Porting simh for IBM VM/CMS

2015-08-04 Thread Dave G4UGM
So that has the Paul Edwards GCC port and hacked BREXX. I am busy this week, but if you nag next week I will look at how SIMH does i/o and see if it is possible to provide some kind of read/write support in the I/O in GCC. Dave From: rubh...@aol.com [mailto:rubh...@aol.com] Sent: 04 August 2

Re: [Simh] off-topic basic translator

2015-08-04 Thread Kevin Handy
I don't think DEC ever did a translator, only compilers. There used to be a company that sold one, but is definately wasn't free. Cannot remember their name. I wrote a heafty part of a VaxBasic to C++ translater, but never handled MAP's or their like very well. It is useful to do a preliminary co

[Simh] off-topic basic translator

2015-08-04 Thread Dan Gahlinger
Does anyone have or know where I can get a copy of the Vax Basic translator? Especially for VMS or windows or something? I'd like to convert my old Vax Basic programs to something usable on modern systems, but while Vax Basic is simple enough there are a few things I have trouble with, such as MA

Re: [Simh] Porting simh for IBM VM/CMS

2015-08-04 Thread rubhone
I'm pleased that my efforts have inspired others to produce code to improve portability of simh. My base hardware for this project runs Ubuntu on a AMD Athlon system, maybe 3-4 years old. The surmised legacy environment is provided by Hercules emulator on Ubuntu; this runs the VM/370 "Six-Pack"