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?
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
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 .
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
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?
forum.basic256.org doesn't have SSL for registration and the activation email doesn't arrive.
Most recent post is September 2018.
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 .
BASIC is not Pythopn or PHP
what kind of bad questions are this ?
old old questions are these :)
how they old..old ..?
just 3 year back 2020 ???
280 downloads ...very good as abandoned project
..project in development very similar in syntax is micro(A).
https://sourceforge.net/projects/micro-a-interpreter/
https://sourceforge.net/projects/micro-a-interpreter/