How about a BASIC that uses Labels instead of line numbers, and actual names for variables - some of the statements are different, for example instead of ‘Input’ labelbasic uses ‘ask’ (Each statment begins with a unique letter)

git your own copy at : https://codeberg.org/WasPentalive/LabelBasic.git

  • waspentalive@lemmy.worldOP
    link
    fedilink
    English
    arrow-up
    2
    ·
    5 days ago

    I will consider those, thanks for the input. - I have constrained myself: Each statement starts with a unique letter, just to make parsing a tiny bit easier. Also so far I don’t have file input - only output to files - for printing on a printer or sending to gnuplot perhaps. That does not mean I can’t have an OPEN “filename”,r to replace stdin temporarily.

    • Treczoks@lemmy.world
      link
      fedilink
      English
      arrow-up
      1
      ·
      5 days ago

      Quick complete parsing of a fixed set of keywords can easily be done with a finite state automaton.