<div dir="ltr"><div>C++ hs std::string which handles most of the basic strings, except for those in maps and other such structures.<br></div>It also has GOTO, and you can implement GOSUB without too much trouble You just hve to be careful about jumping over definitions..<br><br></div><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Aug 4, 2015 at 3:04 PM, Ken Cornetet <span dir="ltr"><<a href="mailto:Ken.Cornetet@kimballelectronics.com" target="_blank">Ken.Cornetet@kimballelectronics.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">





<div link="blue" vlink="purple" lang="EN-US">
<div>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1f497d">Well, perl is often described as a write-only language. Perfect as the output of a translator!<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1f497d"><u></u> <u></u></span></p>
<div>
<div style="border:none;border-top:solid #e1e1e1 1.0pt;padding:3.0pt 0in 0in 0in">
<p class="MsoNormal"><b><span style="font-size:11.0pt;font-family:"Calibri",sans-serif">From:</span></b><span style="font-size:11.0pt;font-family:"Calibri",sans-serif"> Dan Gahlinger [mailto:<a href="mailto:dgahling@hotmail.com" target="_blank">dgahling@hotmail.com</a>]
<br>
<b>Sent:</b> Tuesday, August 04, 2015 4:59 PM<br>
<b>To:</b> Ken Cornetet; <a href="mailto:simh@trailing-edge.com" target="_blank">simh@trailing-edge.com</a></span></p><div><div class="h5"><br>
<b>Subject:</b> Re: [Simh] off-topic basic translator<u></u><u></u></div></div><p></p>
</div>
</div><div><div class="h5">
<p class="MsoNormal"><u></u> <u></u></p>
<div>
<p class="MsoNormal">Per is not a usable language. Lol<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"><u></u> <u></u></p>
</div>
<div>
<p class="MsoNormal"><u></u> <u></u></p>
</div>
<div>
<p class="MsoNormal"><u></u> <u></u></p>
</div>
<div>
<div>
<p class="MsoNormal"><span style="font-size:10.0pt;color:#575757">Sent from my Samsung Galaxy smartphone.<u></u><u></u></span></p>
</div>
</div>
<p class="MsoNormal" style="margin-bottom:12.0pt"><br>
<br>
-------- Original message --------<br>
From: Ken Cornetet <<a href="mailto:Ken.Cornetet@kimballelectronics.com" target="_blank">Ken.Cornetet@kimballelectronics.com</a>>
<br>
Date: 08-04-2015 4:55 PM (GMT-05:00) <br>
To: <a href="mailto:simh@trailing-edge.com" target="_blank">simh@trailing-edge.com</a> <br>
Subject: Re: [Simh] off-topic basic translator <u></u><u></u></p>
<div>
<div>
<p><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1f497d">Perl has goto. Just sayin’</span><u></u><u></u></p>
<p><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1f497d"> </span><u></u><u></u></p>
<p><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1f497d">Writing a VAX basic to perl translator sounds like fun, and when you are done, you’d have learned a usable language.
</span><u></u><u></u></p>
<p><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1f497d"> </span><u></u><u></u></p>
<div>
<div style="border:none;border-top:solid #e1e1e1 1.0pt;padding:3.0pt 0in 0in 0in">
<p><b><span style="font-size:11.0pt;font-family:"Calibri",sans-serif">From:</span></b><span style="font-size:11.0pt;font-family:"Calibri",sans-serif"> Simh [<a href="mailto:simh-bounces@trailing-edge.com" target="_blank">mailto:simh-bounces@trailing-edge.com</a>]
<b>On Behalf Of </b>Dan Gahlinger<br>
<b>Sent:</b> Tuesday, August 04, 2015 4:38 PM<br>
<b>To:</b> Kevin Handy; Tom Morris<br>
<b>Cc:</b> <a href="mailto:simh@trailing-edge.com" target="_blank">simh@trailing-edge.com</a><br>
<b>Subject:</b> Re: [Simh] off-topic basic translator</span><u></u><u></u></p>
</div>
</div>
<p> <u></u><u></u></p>
<div>
<p style="margin-bottom:12.0pt"><span style="font-family:"Calibri",sans-serif">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.</span><u></u><u></u></p>
<div>
<div class="MsoNormal" style="text-align:center" align="center"><span style="font-family:"Calibri",sans-serif">
<hr align="center" size="2" width="100%">
</span></div>
<p style="margin-bottom:12.0pt"><span style="font-family:"Calibri",sans-serif">Date: Tue, 4 Aug 2015 14:29:49 -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:tfmorris@gmail.com" target="_blank">tfmorris@gmail.com</a><br>
CC: <a href="mailto:dgahling@hotmail.com" target="_blank">dgahling@hotmail.com</a>; <a href="mailto:simh@trailing-edge.com" target="_blank">
simh@trailing-edge.com</a></span><u></u><u></u></p>
<div>
<p><span style="font-family:"Calibri",sans-serif">It won't help you. If you look at the section "U<a name="14efa88134e551ab_x_untransl_lang_sec"><strong><span style="font-family:"Calibri",sans-serif">ntranslatable Language Features</span></strong></a>" it
 specifically mentions that MAP, COMMON, and FIELD, and MAT statements are not habdled.</span><u></u><u></u></p>
</div>
<div>
<p><span style="font-family:"Calibri",sans-serif"> </span><u></u><u></u></p>
<div>
<p><span style="font-family:"Calibri",sans-serif">On Tue, Aug 4, 2015 at 2:19 PM, Tom Morris <<a href="mailto:tfmorris@gmail.com" target="_blank">tfmorris@gmail.com</a>> wrote:</span><u></u><u></u></p>
<blockquote style="border:none;border-left:solid #cccccc 1.0pt;padding:0in 0in 0in 6.0pt;margin-top:5.0pt;margin-bottom:5.0pt">
<div>
<p><span style="font-family:"Calibri",sans-serif">If you want to target Python, you might look at using something like vb2py as a starting point.</span><u></u><u></u></p>
<div>
<p><span style="font-family:"Calibri",sans-serif"><a href="http://vb2py.sourceforge.net/" target="_blank">http://vb2py.sourceforge.net/</a></span><u></u><u></u></p>
</div>
<div>
<p><span style="font-family:"Calibri",sans-serif;color:#888888"> </span><u></u><u></u></p>
</div>
<div>
<p><span><span style="font-family:"Calibri",sans-serif;color:#888888">Tom</span></span><u></u><u></u></p>
<div>
<div>
<p><span style="font-family:"Calibri",sans-serif"> </span><u></u><u></u></p>
<div>
<p><span style="font-family:"Calibri",sans-serif"> </span><u></u><u></u></p>
<div>
<p><span style="font-family:"Calibri",sans-serif">On Tue, Aug 4, 2015 at 3:34 PM, Dan Gahlinger <<a href="mailto:dgahling@hotmail.com" target="_blank">dgahling@hotmail.com</a>> wrote:</span><u></u><u></u></p>
<blockquote style="border:none;border-left:solid #cccccc 1.0pt;padding:0in 0in 0in 6.0pt;margin-top:5.0pt;margin-bottom:5.0pt">
<div>
<div>
<p><span style="font-family:"Calibri",sans-serif">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 style="color:#888888"><br>
<br>
Dan.</span></span><u></u><u></u></p>
<div>
<p style="margin-bottom:12.0pt"><span style="font-family:"Calibri",sans-serif"> </span><u></u><u></u></p>
</div>
<div>
<div>
<div class="MsoNormal" style="text-align:center" align="center"><span style="font-family:"Calibri",sans-serif">
<hr align="center" size="2" width="100%">
</span></div>
<p><span style="font-family:"Calibri",sans-serif">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></span><u></u><u></u></p>
</div>
<div>
<div>
<p style="margin-bottom:12.0pt"><span style="font-family:"Calibri",sans-serif"> </span><u></u><u></u></p>
<div>
<div>
<div>
<div>
<p style="margin-bottom:12.0pt"><span style="font-family:"Calibri",sans-serif">I don't think DEC ever did a translator, only compilers.</span><u></u><u></u></p>
</div>
<p style="margin-bottom:12.0pt"><span style="font-family:"Calibri",sans-serif">There used to be a company that sold one, but is definately wasn't free. Cannot remember their name.</span><u></u><u></u></p>
</div>
<p style="margin-bottom:12.0pt"><span style="font-family:"Calibri",sans-serif">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.</span><u></u><u></u></p>
</div>
<p><span style="font-family:"Calibri",sans-serif">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.</span><u></u><u></u></p>
</div>
<div>
<p><span style="font-family:"Calibri",sans-serif"> </span><u></u><u></u></p>
<div>
<p><span style="font-family:"Calibri",sans-serif">On Tue, Aug 4, 2015 at 9:52 AM, Dan Gahlinger <<a href="mailto:dgahling@hotmail.com" target="_blank">dgahling@hotmail.com</a>> wrote:</span><u></u><u></u></p>
<blockquote style="border:none;border-left:solid #cccccc 1.0pt;padding:0in 0in 0in 6.0pt;margin-top:5.0pt;margin-bottom:5.0pt">
<div>
<div>
<p><span style="font-family:"Calibri",sans-serif">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 style="color:#888888"><br>
<br>
Dan.</span></span><u></u><u></u></p>
</div>
</div>
<p><span style="font-family:"Calibri",sans-serif"><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" target="_blank">http://mailman.trailing-edge.com/mailman/listinfo/simh</a></span><u></u><u></u></p>
</blockquote>
</div>
<p><span style="font-family:"Calibri",sans-serif"> </span><u></u><u></u></p>
</div>
</div>
</div>
</div>
</div>
</div>
<p><span style="font-family:"Calibri",sans-serif"><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" target="_blank">http://mailman.trailing-edge.com/mailman/listinfo/simh</a></span><u></u><u></u></p>
</blockquote>
</div>
<p><span style="font-family:"Calibri",sans-serif"> </span><u></u><u></u></p>
</div>
</div>
</div>
</div>
</div>
<p><span style="font-family:"Calibri",sans-serif"><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" target="_blank">http://mailman.trailing-edge.com/mailman/listinfo/simh</a></span><u></u><u></u></p>
</blockquote>
</div>
<p><span style="font-family:"Calibri",sans-serif"> </span><u></u><u></u></p>
</div>
</div>
</div>
</div>
</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>