by Ciprian Niculescu
Simple, C like programming language and an application embeddable interpreter.

aime is a simple, C like programming language and an application embeddable interpreter. The language is meant to be simple and productive. The interpreter stresses data integrity and expressiveness. The featured automatic resource management makes programming trivial and the program execution safe for the applications embedding the interpreter.

integer
median3(integer a, integer b, integer c)
{
    integer m;

    if (a < b) {
	if (b < c) {
	    m = b;
	} else {
	    if (a < c) {
		m = c;
	    } else {
		m = a;
	    }
	}
    } else {
	if (a < c) {
	    m = a;
	} else {
	    if (b < c) {
		m = c;
	    } else {
		m = b;
	    }
	}
    }

    return m;
}
Information updated 04/04/16
View Comments