<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 12pt;
font-family:Calibri
}
--></style></head>
<body class='hmmessage'><div dir='ltr'>Then I'll have to do it myself by hand, which from the manual doesn't look that bad.<br>I'll test the vb2py script but I won't hold my breath.<br>I'm not going to write my own to translate a paltry dozen or so programs (even if some of them are long).<br><br>I shudder at having to translate "goto" :)<br>But from the manual link I provided on vax basic, it doesn't look terribly bad.<br>I'll probably convert to freepascal which has portability to many platforms, and is the one I'm most familiar with.<br><br>Vax Basic was probably one of the easiest languages I've ever had to learn, in hindsight it was probably a bad idea to learn it<br>so early on, should have learned C instead...<br><br>Dan.<br><br><div><hr id="stopSpelling">Date: Tue, 4 Aug 2015 14:29:49 -0600<br>Subject: Re: [Simh] off-topic basic translator<br>From: khandy21yo@gmail.com<br>To: tfmorris@gmail.com<br>CC: dgahling@hotmail.com; simh@trailing-edge.com<br><br><div dir="ltr">It won't help you. If you look at the section "U<a name="untransl_lang_sec" target="_blank"><strong>ntranslatable Language Features</strong></a>" it specifically mentions that MAP, COMMON, and FIELD, and MAT statements are not habdled.<br></div><div class="ecxgmail_extra"><br><div class="ecxgmail_quote">On Tue, Aug 4, 2015 at 2:19 PM, Tom Morris <span dir="ltr"><<a href="mailto:tfmorris@gmail.com" target="_blank">tfmorris@gmail.com</a>></span> wrote:<br><blockquote class="ecxgmail_quote" style="border-left:1px #ccc solid;padding-left:1ex;"><div dir="ltr">If you want to target Python, you might look at using something like vb2py as a starting point.<div><a href="http://vb2py.sourceforge.net/" target="_blank">http://vb2py.sourceforge.net/</a></div><span class="ecxHOEnZb"><font color="#888888"><div><br></div></font></span><div><span class="ecxHOEnZb"><font color="#888888">Tom</font></span><div><div class="h5"><br><div class="ecxgmail_extra"><br><div class="ecxgmail_quote">On Tue, Aug 4, 2015 at 3:34 PM, Dan Gahlinger <span dir="ltr"><<a href="mailto:dgahling@hotmail.com" target="_blank">dgahling@hotmail.com</a>></span> wrote:<br><blockquote class="ecxgmail_quote" style="border-left:1px #ccc solid;padding-left:1ex;">


<div><div dir="ltr">I was thinking of this one: <a href="http://h71000.www7.hp.com/commercial/basic/t12/t12_pro.html" target="_blank">http://h71000.www7.hp.com/commercial/basic/t12/t12_pro.html</a><br>so definitely there was one, it's discontinued though.<br><br>I don't know what to do with MAP or MAT statements, otherwise I could do most of it myself.<br><br>C or C++ is not an ideal language, I was thinking of easier translations,<br>like say to freepascal or python, as they are most "basic like" in looks.<br>Strings as you say can be tough, but that's why pascal or even python is good,<br>strings are just strings.<br>basic was great for string manipulation because you could do literally anything.<br><br>I was kind of hoping someone might have a copy of the HP/compaq product listed above<br>I certainly don't want to buy it (though its discontinued so I can't) just to translate a dozen programs<br>that I wrote myself back in the 80's.<br><br>Update: it looks like I might be able to do it myself using this reference document:<br><a href="http://bitsavers.trailing-edge.com/pdf/dec/vax/lang/basic/AA-HY15B-TE_VAX_BASIC_User_Manual_Feb90.pdf" target="_blank">http://bitsavers.trailing-edge.com/pdf/dec/vax/lang/basic/AA-HY15B-TE_VAX_BASIC_User_Manual_Feb90.pdf</a><span><font color="#888888"><br><br>Dan.<br></font></span><div><br><br></div><div><div><hr>Date: Tue, 4 Aug 2015 12:29:01 -0600<br>Subject: Re: [Simh] off-topic basic translator<br>From: <a href="mailto:khandy21yo@gmail.com" target="_blank">khandy21yo@gmail.com</a><br>To: <a href="mailto:dgahling@hotmail.com" target="_blank">dgahling@hotmail.com</a><br>CC: <a href="mailto:simh@trailing-edge.com" target="_blank">simh@trailing-edge.com</a></div><div><div><br><br><div dir="ltr"><div><div><div>I don't think DEC ever did a translator, only compilers.<br><br></div>There used to be a company that sold one, but is definately wasn't free. Cannot remember their name.<br><br></div>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 conversion, but then needs a lot of editing for most programs. Things like programd from "101 Basic Computer Games" mostly work without any problems. Nut it's been a while since I did anything with it.<br><br></div>Problems with the yranslations are mostly vaused by the way Basic handles variables, especially strings. C++ hastwo types of string (char* and std::string), but Basic has several different types mixed together. MAPs want a fixed length fixed position string which may overlap other strings. Normal nasic strings are variable length and variable position. FIELD statements can change a string from one type to another. It gets quite complicated without writing the DEC string library, which is quite complex.<br></div><div><br><div>On Tue, Aug 4, 2015 at 9:52 AM, Dan Gahlinger <span dir="ltr"><<a href="mailto:dgahling@hotmail.com" target="_blank">dgahling@hotmail.com</a>></span> wrote:<br><blockquote style="border-left:1px #ccc solid;padding-left:1ex;">


<div><div dir="ltr">Does anyone have or know where I can get a copy of the Vax Basic translator?<br>Especially for VMS or windows or something?<br><br>I'd like to convert my old Vax Basic programs to something usable on modern systems,<br>but while Vax Basic is simple enough there are a few things I have trouble with,<br>such as MAP statements, records, etc.<br><br>I've tried looking on the HP/etc sites and it seems it's been discontinued,<br><br>does anyone have a copy I can use, or know where I can get one?<br><br>I don't want to pay for a product, as this is just hobbyist use for personal programs I wrote<br><br>thanks<span><font color="#888888"><br><br>Dan.<br>                                     </font></span></div></div>
<br>_______________________________________________<br>
Simh mailing list<br>
<a href="mailto:Simh@trailing-edge.com" target="_blank">Simh@trailing-edge.com</a><br>
<a href="http://mailman.trailing-edge.com/mailman/listinfo/simh" rel="noreferrer" target="_blank">http://mailman.trailing-edge.com/mailman/listinfo/simh</a><br></blockquote></div><br></div></div></div></div>                                         </div></div>
<br>_______________________________________________<br>
Simh mailing list<br>
<a href="mailto:Simh@trailing-edge.com" target="_blank">Simh@trailing-edge.com</a><br>
<a href="http://mailman.trailing-edge.com/mailman/listinfo/simh" rel="noreferrer" target="_blank">http://mailman.trailing-edge.com/mailman/listinfo/simh</a><br></blockquote></div><br></div></div></div></div></div>
<br>_______________________________________________<br>
Simh mailing list<br>
<a href="mailto:Simh@trailing-edge.com">Simh@trailing-edge.com</a><br>
<a href="http://mailman.trailing-edge.com/mailman/listinfo/simh" rel="noreferrer" target="_blank">http://mailman.trailing-edge.com/mailman/listinfo/simh</a><br></blockquote></div><br></div></div>                                         </div></body>
</html>