Release: BASIC compiler and VM in Javascript

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Jeremy J Starcher

    Release: BASIC compiler and VM in Javascript

    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.



  • Jeremy J Starcher

    #2
    Re: Release: BASIC compiler and VM in Javascript

    On Thu, 06 Dec 2007 07:00:31 +0000, Jeremy J Starcher wrote:
    >
    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.

    Comment

    • Jeremy J Starcher

      #3
      Re: Release: BASIC compiler and VM in Javascript

      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*

      Comment

      • Jeremy J Starcher

        #4
        Re: Release: BASIC compiler and VM in Javascript

        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.

        Comment

        • rf

          #5
          Re: Release: BASIC compiler and VM in Javascript


          "Jeremy J Starcher" <r3jjs@yahoo.sp am.me.not.comwr ote in message
          news:pan.2007.1 2.06.08.25.54.4 06249@yahoo.spa m.me.not.com...
          >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.
          Pan playing up again?

          --
          Richard.


          Comment

          • David Mark

            #6
            Re: Release: BASIC compiler and VM in Javascript

            On Dec 6, 3:25 am, Jeremy J Starcher <r3...@yahoo.sp am.me.not.com>
            wrote:
            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.
            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="javas cript1.2" type="text/
            javascript">
            </script>

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

            <a href="javascrip t:changeSize('d ialog_content', 1)">

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

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

            Comment

            • Randy Webb

              #7
              Re: Release: BASIC compiler and VM in Javascript

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

              <snip>
              I would find a competent developer to re-do the site before you flood
              newsgroups with additional ads.
              "flood newsgroups with additional ads"? Isn't that a wee bit harsh?

              --
              Randy
              Chance Favors The Prepared Mind
              comp.lang.javas cript FAQ - http://jibbering.com/faq/index.html
              Javascript Best Practices - http://www.JavascriptToolbox.com/bestpractices/

              Comment

              • David Mark

                #8
                Re: Release: BASIC compiler and VM in Javascript

                On Dec 6, 6:51 am, Randy Webb <HikksNotAtH... @aol.comwrote:
                David Mark said the following on 12/6/2007 5:31 AM:
                >
                <snip>
                >
                I would find a competent developer to re-do the site before you flood
                newsgroups with additional ads.
                >
                "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.

                Comment

                • -Lost

                  #9
                  Re: Release: BASIC compiler and VM in Javascript

                  Response to David Mark <dmark.cinsoft@ gmail.com>:
                  I was half-jokingly referring to the half-dozen posts that started
                  this thread.
                  Wouldn't that be quater-dozen? ; )

                  --
                  -Lost
                  Remove the extra words to reply by e-mail. Don't e-mail me. I am
                  kidding. No I am not.

                  Comment

                  • Jeremy J Starcher

                    #10
                    Re: Release: BASIC compiler and VM in Javascript

                    On Thu, 06 Dec 2007 08:33:29 +0000, rf wrote:
                    >
                    "Jeremy J Starcher" <r3jjs@yahoo.sp am.me.not.comwr ote in message
                    news:pan.2007.1 2.06.08.25.54.4 06249@yahoo.spa m.me.not.com...
                    >>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.
                    >
                    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.

                    Comment

                    • Jeremy J Starcher

                      #11
                      Re: Release: BASIC compiler and VM in Javascript

                      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.
                      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.
                      >
                      http://www.mopedepot.com/jjs/mote/

                      Comment

                      • Randy Webb

                        #12
                        Re: Release: BASIC compiler and VM in Javascript

                        Jeremy J Starcher said the following on 12/22/2007 1:42 AM:
                        Lets see if I can make less of a mess here than I did on my first posting.
                        I will refrain from smacking you for top-posting.
                        Debated starting a new thread, but decided against it.
                        Either/Or, doesn't really matter.
                        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 think that is the first time I have seen someone apologize for trying
                        to offer your work, for free, to try to save someone else a lot of time.
                        I'm wearing a fireproof suit and ready for the NEXT round of comments.
                        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.

                        --
                        Randy
                        Chance Favors The Prepared Mind
                        comp.lang.javas cript FAQ - http://jibbering.com/faq/index.html
                        Javascript Best Practices - http://www.JavascriptToolbox.com/bestpractices/

                        Comment

                        • Jeremy J Starcher

                          #13
                          Re: Release: BASIC compiler and VM in Javascript

                          On Sat, 22 Dec 2007 02:07:25 -0500, Randy Webb wrote:
                          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.

                          Comment

                          • David Mark

                            #14
                            Re: Release: BASIC compiler and VM in Javascript

                            On Dec 22, 1:42 am, Jeremy J Starcher <r3...@yahoo.sp am.me.not.com>
                            wrote:
                            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.

                            Comment

                            Working...