milix research
home
cdda ripper
aice
ccc reader
opengl
ai
programming
contact me
elastiC

elastiC by Marco Pantaleoni is an Object Oriented Programming language. In some aspects elastiC is similar to Objective-C and Smalltalk and can be interpreted or compiled to portable byte code. This language is easy to learn and it can be used to teach the basics of OO and event oriented programming or as a scripting language (for example in a 3D game engine - see the general 3d in opengl section).
Check the homepage of elastiC at http://www.elasticworld.org

Tutorials

Hello world
package hello;
import basic;
basic.printnl("Hello World!");

Standard Input-Output
// The name of the package, like PASCAL's "PROGRAM simpleio"
package simpleio;

// those are like C's "#include <stdlib.h>" etc or PASCAL's "USES conio" etc
import basic;
import file;
import string;

// declare some local variables
// variables in elastiC are type-less
local name, s, age;

//
// main body
//
basic.print("Enter your name ");
name = file.gets(file.stdin);
name = string.trim(name);
basic.print("Enter your age ");
s = file.gets(file.stdin);
age = basic.int(s);
basic.printnl(name, " you are ", age, " years old!");
basic.printnl("In ten years you will be ", age+10, " years old. Keep walking!");