让旧的BASIC程序在线运行 [英] Getting an old BASIC program to run online

查看:97
本文介绍了让旧的BASIC程序在线运行的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个旧的BASIC程序的源代码,我的朋友

想要在线运行。我是JS的初学者,但我认为它对于该项目来说是个不错的选择。我的背景是用C / C ++和

网页开发。


有什么建议可以让我在这里开个好头吗?我可以

如果需要提供更多信息,但我不确定

会有什么帮助。该程序是550行,似乎是BASIC,是一个

日历转换程序。你给它一个约会日期,它会将它转换成许多其他日期计算系统之一(格里高利,希伯来文,

埃及文等等)。

解决方案

Trippeer,


您是否打算将程序从BASIC转换为JavaScript?


用什么版本的BASIC编写这个程序?


如果你只是想找一个免费的BASIC翻译,你可以找几个

在线:


Just Basic http: //www.justbasic.com

Digital Basic http://hp.vector.co.jp/authors/VA008...lish/index.htm

Chipmunk Basic http://www.nicholson.com/rhn/basic/

Small Basic http://smallbasic.sourceforge.net

John Fredrickson


< tr ****** @ gmail.com写信息

新闻:11 ********************* *@i42g2000cwa.googlegr oups.com ...


>我有一个旧的BASIC程序的源代码,我的一个朋友

想在线运行。我是JS的初学者,但我认为它对于该项目来说是个不错的选择。我的背景是用C / C ++和

网页开发。


有什么建议可以让我在这里开个好头吗?我可以

如果需要提供更多信息,但我不确定

会有什么帮助。该程序是550行,似乎是BASIC,是一个

日历转换程序。你给它一个约会日期,它会将它转换成许多其他日期计算系统之一(格里高利,希伯来文,

埃及文等等)。



是的,我想将它转换为JS。据我所知,我无法按原样在网页上运行,所以我打算使用源代码来解析逻辑并重写它在JS。


我不知道什么版本的BASIC,但看起来很漂亮

直截了当。很多GOSUBS和GOTO,以及带有READ和DATA关键字的FOR / NEXT结构填充数组




John Fredrickson写道:


Trippeer,


您打算将程序从BASIC转换为JavaScript吗?


用什么版本的BASIC编写程序?


如果您只是在寻找免费的BASIC翻译,您可以在线找到几个




Just Basic http://www.justbasic.com

Digital Basic http://hp.vector.co.jp/authors/VA008...lish/index.htm

Chipmunk Basic http://www.nicholson.com/rhn/basic/

Small Basic http://smallbasic.sourceforge.net

John Fredrickson


tr******@gmail.com 于2006年8月8日在comp中写道.lang.javascript


John Fredrickson写道:


> Trippeer,

您是否打算将程序从BASIC转换为JavaScript?

BASIC的编程是什么版本的?

如果你正在寻找一个免费的BASIC翻译,你可以在网上找到几个:

Just Basic http://www.justbasic.com
数字基本
http://hp.vector.co.jp/authors/VA008...lish/index.htm 或Chipmunk http://www.nicholson.com/rhn/basic/ 或Small Basic
http://smallbasic.sourceforge.net



[请不要使用usenet]


是的,我想将其转换为JS。据我所知,我无法按原样在网页上运行,所以我打算使用源代码来解析逻辑并重写它在JS。


我不知道什么版本的BASIC,但看起来很漂亮

直截了当。很多GOSUBS和GOTO,以及使用READ和DATA关键字填充FOR / NEXT结构的数组是



自动转换是不可能的,取决于。


建议:

尝试理解程序并写一个JS程序

具有相同的效果。


现代编程是面向模块的,所以goto 20世纪70年代遭到Dijkstra攻击的重要概念已被从现代的

语言版本中删除。这是正确的。


-

Evertjan。

荷兰。

(请更改我的电子邮件地址中的点数x''点数)


I have the source code to an old BASIC program that a friend of mine
would like to run online. I am a beginner at JS, but I think that it
would be a good choice for the project. My background is in C/C++ and
web development.

Any suggestions that might get me off to a good start here? I can
provide more information if needed, but I am not sure what would be
helpful. The program is 550 lines in what appears to be BASIC and is a
calendar conversion program. You give it a date and it will convert it
into one of many other date reckoning systems (Gregorian, Hebrew,
Egyptian, etc, etc).

解决方案

Trippeer,

Is your intention to convert the program from BASIC to JavaScript?

What version of BASIC is the program written in?

If you are just looking for a free BASIC interpreter, you can find several
on-line:

Just Basic http://www.justbasic.com or
Digital Basic http://hp.vector.co.jp/authors/VA008...lish/index.htm or
Chipmunk Basic http://www.nicholson.com/rhn/basic/ or
Small Basic http://smallbasic.sourceforge.net

John Fredrickson

<tr******@gmail.comwrote in message
news:11**********************@i42g2000cwa.googlegr oups.com...

>I have the source code to an old BASIC program that a friend of mine
would like to run online. I am a beginner at JS, but I think that it
would be a good choice for the project. My background is in C/C++ and
web development.

Any suggestions that might get me off to a good start here? I can
provide more information if needed, but I am not sure what would be
helpful. The program is 550 lines in what appears to be BASIC and is a
calendar conversion program. You give it a date and it will convert it
into one of many other date reckoning systems (Gregorian, Hebrew,
Egyptian, etc, etc).



Yes, I would like to convert it to JS. As far as I know, I cannot get
it to run in a web page as is, so I plan on using the source code to
decipher the logic and rewrite it in JS.

I don''t know what version of BASIC, but it seems pretty
straightforward. Lots of GOSUBS and GOTOs, and the arrays are populated
with a FOR/NEXT construction with READ and DATA keywords.

John Fredrickson wrote:

Trippeer,

Is your intention to convert the program from BASIC to JavaScript?

What version of BASIC is the program written in?

If you are just looking for a free BASIC interpreter, you can find several
on-line:

Just Basic http://www.justbasic.com or
Digital Basic http://hp.vector.co.jp/authors/VA008...lish/index.htm or
Chipmunk Basic http://www.nicholson.com/rhn/basic/ or
Small Basic http://smallbasic.sourceforge.net

John Fredrickson


tr******@gmail.com wrote on 08 aug 2006 in comp.lang.javascript:

John Fredrickson wrote:

>Trippeer,

Is your intention to convert the program from BASIC to JavaScript?

What version of BASIC is the program written in?

If you are just looking for a free BASIC interpreter, you can find
several on-line:

Just Basic http://www.justbasic.com or
Digital Basic
http://hp.vector.co.jp/authors/VA008...lish/index.htm or Chipmunk
Basic http://www.nicholson.com/rhn/basic/ or Small Basic
http://smallbasic.sourceforge.net

[please do not toppost on usenet]

Yes, I would like to convert it to JS. As far as I know, I cannot get
it to run in a web page as is, so I plan on using the source code to
decipher the logic and rewrite it in JS.

I don''t know what version of BASIC, but it seems pretty
straightforward. Lots of GOSUBS and GOTOs, and the arrays are
populated with a FOR/NEXT construction with READ and DATA keywords.

Automatic conversion is impossible, methinks.

Suggestion:
Try to understand the programme and write a JS programme
that has the same effect.

Modern progamming is module oriented, so the "goto" concept, heavily
attacked by Dijkstra in the 1970s, has been removed from the modern
language versions. and rightly so.

--
Evertjan.
The Netherlands.
(Please change the x''es to dots in my emailaddress)


这篇关于让旧的BASIC程序在线运行的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆