I though it would be funny to write a programming language where commands are based on an array of keywords so users have a very broad range of 'plain-text' words that are normally used to describe the action. the result is a very 'smart' compiler and paragraphs of plain-text.
There is only one reserverd characted the single quote... (all other symbols are removed from the 'code').
example: many ways to print hello world:
1 2 3 4 5 6 7
print 'Hello, World!\n'.
print the string 'Hello, World!\n' on the screen.
show 'Hello, World!\n'.
make 'Hello, World!\n' visible on the screen.
output the words 'Hello, World!\n' to cout.
print out the following string 'Hello, World!\n'.
/* ... */
amoung other functions you can create variables or variable lists, start other scripts and get their return value. make program parameters to be passed when running the script. lol
yep^^... something that is able to communicate with you... express itself(and it´s feelings) and - most important - solve problems:P...
As I understood, You try to create some kind of interpeter/compiler which searches for keywords in an user-entered input and try to understand what the user wants it to do?...
u need to make some grammar-sensitive thing then - in my opinion - so you could straight forward to some kind of AI ^-^...
The problem is that natural language isn't sufficiently exacting.
that was what I though, thats why I attempted this project in the first place.
I use keyword arrays which are sorted by significance (relevance)... it uses a decay function (comparing all the words in a command block (paragraph)) which comes up with a sum, the Max (most likely) being the desired action to be carried out by the parser.
parsers definately work more easily with rigid syntax. but I would not say that loose-syntax plain-text could not be used to carry out specific commands.
my ultimate goal is to completly bury the appearance of not only syntax, but the fundementals of programming. eg: have as many as possible predefined actions as possible.