Release: BASIC compiler and VM in Javascript

  • Thread starter Jeremy J Starcher
  • Start date
J

Jeremy J Starcher

Hullo all.

A while back I wrote a BASIC compiler and VM in Javascript as a learning
project. As happens too often, my life got too busy to do anything with it.

Rather that sit on it any longer, I hereby pass it along to everyone as
a gift. Someone may find it useful to learn from.

My coding has gotten much better since then, but if there are any comments
on the code I'm open to hearing them.

http://mopedepot.com/jjs/mote/
 
J

Jeremy J Starcher

Hullo all.

A while back I wrote a BASIC compiler and VM in Javascript as a learning
project. As happens too often, my life got too busy to do anything with it.

Ignore this post. Meant to make it a top-level post. Not quite sure
where I went wrong.
 
J

Jeremy J Starcher

Ignore this post. Meant to make it a top-level post. Not quite sure
where I went wrong.

OK -- I feel like a dolt already. Ignore the ignore. Sorry.
*Embarrassed and rather sheepish grin*
 
J

Jeremy J Starcher

Ignore this post. Meant to make it a top-level post. Not quite sure
where I went wrong.

Amazing how dense I can be, misreading my own screen.

Please ignore that ignore.

Apologies.
 
D

David Mark

Amazing how dense I can be, misreading my own screen.

Please ignore that ignore.

Apologies.

So do you want somebody to look at it or not? I assumed yes and
clicked your "see it in action" link. I looked at the source of the
page and it is a disaster. No opening HTML tag. XHTML-style tags
with an HTML strict doctype, plus things like this:

<script src="tools/tools.js" language="javascript1.2" type="text/
javascript">
</script>

<script type="text/javascript">
//<![CDATA[

<a href="javascript:changeSize('dialog_content',1)">

<form name="tab1_form" method="post" action="javascript:void(0)"
id="tab1_form">

I would find a competent developer to re-do the site before you flood
newsgroups with additional ads.
 
D

David Mark

David Mark said the following on 12/6/2007 5:31 AM:



"flood newsgroups with additional ads"? Isn't that a wee bit harsh?

I was half-jokingly referring to the half-dozen posts that started
this thread.
 
J

Jeremy J Starcher

Pan playing up again?

As much as I'd like to blame it on Pan, I must confess to posting while
tired. The fact that its been a year or so since I started a thread
just helped.
 
J

Jeremy J Starcher

Lets see if I can make less of a mess here than I did on my first posting.
Debated starting a new thread, but decided against it.

Everyone: Thank you for your comments. I took the gentle hand-smacking
in good grace and cleaned up my HTML; it is now HTML 4.01 strict
compliant.

I'm wearing a fireproof suit and ready for the NEXT round of comments.
 
J

Jeremy J Starcher

Did you notice though that nobody commented on the actual code itself
and rather chose to comment on the presentation of the code? Screw'em.

Actually, yea I did. However, I've lurked here enough to realize that
some folks here are fairly busy and don't chase down every code snippet
and use presentation for a "quality-of-code" metric.

Either that or its too big of a thing to easily digest. I might have
picked too esoteric of an idea to learn JS with.

Who knows, maybe I'll yank out the tokenizer and turn that into a
pretty-print script. I've not been happy with any of the ones I've seen.
 
D

David Mark

Lets see if I can make less of a mess here than I did on my first posting.
Debated starting a new thread, but decided against it.

Everyone: Thank you for your comments.  I took the gentle hand-smacking
in good grace and cleaned up my HTML;  it is now HTML 4.01 strict
compliant.

Actually, if I had read carefully and noticed the word "gift", I
wouldn't have taken your page apart (we get a lot of ads in here.) Of
course, there were so many posts. Good that you cleaned it up though.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,770
Messages
2,569,584
Members
45,075
Latest member
MakersCBDBloodSupport

Latest Threads

Top