Menu

minimal programming language

2020-01-20
2023-12-20
  • Dave Kimble

    Dave Kimble - 2020-01-20

    I am working on teaching extra-terrestrial intelligences to program using the simplest programming language.
    This has the absolute minimum of syntax rules and special characters, and should be capable of being extended to more complex language tasks.
    Both ends of the conversation will need to translate the binary communication into their own characters and write a compiler for their hardware.
    A subset of BASIC-256 is very close to what is needed, however:
    Why do variables holding strings have to have names with the special character suffix "$"?- Python-3 does not require this.
    Why does the "IF" statement need to have a "THEN" and an "END IF" to define the start and end of the compound grouping?
    - "(" and ")" could denote the start and end of the grouping.
    Why does "n=256" allow any amount of white space to be embedded, but not linebreaks? - PHP does not require this.

    Could the compiler be easily changed to accomodate these simplifications?

     
  • Dave Kimble

    Dave Kimble - 2020-01-21

    forum.basic256.org doesn't have SSL for registration and the activation email doesn't arrive.
    Most recent post is September 2018.

     
  • Dave Kimble

    Dave Kimble - 2020-01-21

    You can't have labels within functions !!! Surely that should be you can't GOTO somewhere inside a function from somewhere outside of the function. Inside to inside GOTOs should be allowed.

    FUNCTION to END FUNCTION should be changed to FUNCTION name(param list) ( ... ) , also same for FOR ... NEXT, DO ... UNTIL, WHILE ... END WHILE .

     
  • Zlatko Vidlanovic

    BASIC is not Pythopn or PHP
    what kind of bad questions are this ?

     
  • Al Voland

    Al Voland - 2023-09-10

    old old questions are these :)

     
  • Zlatko Vidlanovic

    how they old..old ..?
    just 3 year back 2020 ???

     
  • Zlatko Vidlanovic

    280 downloads ...very good as abandoned project
    ..project in development very similar in syntax is micro(A).
    https://sourceforge.net/projects/micro-a-interpreter/

     

Log in to post a comment.