Eloquent


Update:
I've pretty much decided that this idea is worthless. I was catering this language to people that know nothing about programming, except for the example I've described below, why wouldn't they just use a calculator instead of my quasi-programming language? Maybe there's a niche for it, but I'm not so sure anymore. I'm going to leave this page up for posterity or until I figure out something more useful to use a cool name like Eloquent on.

The idea of this scripting language is you just type what you want the program to do instead of use a specially-formatted syntax. A basic example would be:

Java:

List list = new ArrayList();
list.add(4); list.add(100); list.add(54);
int ctr=0;
for(ListIterator itr=list.listIterator(); itr.hasNext();){
  ctr+= (int)itr.next();
}
System.out.println(ctr);
C:

int list[3]={4,100,54};
int ctr=0;
for(int i=0;i<3;i++){
  ctr+=list[i];
}
printf("%d",ctr);
Eloquent:

Make a list with these numbers: 4,100,54
Loop through the list, add up all of the numbers and print out the result
It's clear what I'm trying to accomplish at this point, obviously there are a lot of details to be worked out. The first step is to figure out how to write an interpreter for it. One of the great things about the language is that you have the flexibility to write the application numerous different ways. The way I envision this working is that there are certain keywords or characters that trigger different actions. For instance, a colon would tell the interpreter we're starting a list, the words loop or iterate would mean we need to traverse through something, and so on. What this allows is that you can write your "code" however you would like as long as you include the right keyword(s) somewhere in it. These two lines would basically accomplish the same thing:

Make a list with these numbers: 4,100,54
Faites une liste avec ces nombres: 4,100,54
It's exciting to think about the possibilities. Who needs comments when you're explaining how the program works in the code. Gone are the days you need to spend time trying to figure out how a piece of code works, because the program says it in your spoken language. I don't feel that my computer science skill is far enough along to tackle a project like this, but I look forward to working on it at some point and felt compelled to describe my idea.