Language Plain English
Date: | 02/16/06 |
Author: | The Osmosian Order |
URL: | http://www.osmosian.com |
Comments: | 24 |
Info: | http://www.osmosian.com |
Score: | ![]() |
To sing the beer song: Put 99 into a number. Loop. If the number is 0, break. Format a string given the number and "bottle" and "bottles". Write the string then " of beer on the wall, " then the string then " of beer.". Format another string given the number minus 1 and "bottle" and "bottles". Write "Take one down and pass it around, " then the other string then " of beer on the wall.". Skip a line. Subtract 1 from the number. Repeat. Write "No more bottles of beer on the wall, no more bottles of beer.". Write "Go to the store and buy some more, 99 bottles of beer on the wall.". To format a string given a number and a singular string and a plural string: If the number is 0, put "no more " then the plural into the string; exit. If the number is 1, put "1 " then the singular into the string; exit. Put the number then " " then the plural into the string.
Download Source | Write Comment
Download Source | Write Comment
Add Comment
Please provide a value for the fields Name,
Comment and Security Code.
This is a gravatar-friendly website.
E-mail addresses will never be shown.
Enter your e-mail address to use your gravatar.
Please don't post large portions of code here! Use the form to submit new examples or updates instead!
Comments
plain english has too much text, my eyes gets tired really fast.
Dangerous work.
"99 bottles of beer on the wall, 99 bottles of beer."
"Take one down, pass it around, -1 bottles of beer on the wall."
"Go to the store, buy some more, 99 bottles of beer on the wall."
Is there something wrong with my compiler?
If the language is sufficiently powerful, it's possible.
if not i will create one...
visit my blog at: http://nano-systems.blogspot.com/ and tell me if you are with me
//Stick to C#
}
Hehe, I remebered this
And I said that this language must be the most "Highleveleisht" that I know about.
But this language is a bit nutty or something, not entirely raw plain English, but rather a strict subset. And it's a bit strange from a programmers angle of vision; no need to give a variable a name:
Put 99 into a number.
That could be named as a Anonymous variable or something like that. It's a really interesting idea, I tried to download it under the link calle94-1337 said, but as he says it probably wont work for Linux, it seems like "the noodle" ( yummy, noodles. chicken or beef? ) is strictly aimed at windows, including lots of inline assembly code:
intel $8B00. \ mov eax,[eax]
I have just started to read the pdf-file, and I have to say that I'm rather impressed already on page 5!
It's a shame that the version is still in 3037 after three years, And I would be happy to see the bootstrapping compiler ( if it's written in C or some other understandable language
The syntax is not like C (++) or Java ( maybe just a little bit ) or anything I've seen. It's intended to be pretty high-level avoiding smalltalk ( haha, funny me ).
But still very logic so that I one day can learn my sister programming
Well, thanks for the talk :p
Back to gaming
If you'd like more information about Plain English, just write to us directly (help@osmosian.com). We'll be happy to assist you.
Regarding the "bootstrapping compiler" you mentioned, I'm afraid it is now lost in the annals of programming history. It was a Pascal-like language of our own design and was implemented using a very tiny subset of Borland's Delphi. We employed it briefly to produce the extremely minimal CAL-1000 (our first Plain English development system) and then immediately abandoned it. At that point we took the Osmosian Oath ("I promise never to program in any language but my own"
But the really interesting work is about to begin as we enter Phase II of our project and use the the last of the CAL-series compilers to create the initial incarnation of our "apparently intelligent"(tm) machine, the PAL-1000.
Again, don't hesitate to write.
Your Friendly Neighborhood Negus
Nice to see that the project isn't dead after all
I shurely likes the idea of the Plain English Language, but my brain is pretty damaged after years of programming in various odd languages ( like php, java, gml [ yuck! ] ).
And thats why I wants to implement my own language, I was a bit on the way doing it before my HP laptops motherboard fryed because of a defect in the computers bios ( that is present in several series of HP laptops, watchout! update your bios if u ownz one! )
So I lost tons of data ;(
Right now I'm leaning towards a mixture between lua, python and [ Highlevel ] C++.
I wants to have a language that supports the bleeding edge of hardware, is fast to learn, write and read. Is able to be written in a sort of interactve mode. Can both be compiled and intepreted.
Remember: eval is evil!
I'm gonna write to you [The Grand Negus] by mail, soon :p
Best regards!
Frank M. Eriksson