Agent Manipulation Language (AML) is a programming languages that compiles to C. It support describing the behaviors of agents and the computation geometry.
AML is implemented in OCaml.There are some slides made by myself.
###Build from source
- install glut // for mac OS, Xcode bring the glut
- opam install menhir
- clone with git
- make
- ./main.native [file]
$ make test
$ cd demo
$ g++ -o main demo1.cpp -lglut -lGL # for ubuntu
$ g++ -framework OpenGL -framework GLUT -framework Foundation -o main demo1.cpp # for mac OS
$ ./main
int i = 1;
double f = 1.0;
string s = "1";
bool b = true;
ang d = (1, 0);
vec2f v = (1, 1);println(false, true, 42);
println(1 + (4 + 6) * 3);
println(8 - 3 % 2);
println(-9 - 9);
println((2 + 8) / 3);/* This is a multi-line comment */
// This is a single-line commentint sum;
for(int i = 1; i <= 100; i = i + 1) {
sum = sum + i;
}int a = 3;
if (a > 2)
println("Yes");
else {
println("No");
}int fibonacci(int num) {
if (num == 0)
return(0);
else if(num == 1)
return(1);
else return (fibonacci(num - 2) + fibonacci(num - 1));
}