[an error occurred while processing this directive]

Variable names and data types

Variable names

x
refers to the variable x in the immediate context
~/x
refers to the variable x in the context one level up
/x
refers to the variable x in the root (topmost) context
x!
refers to an Eden variable
Note:

Data types

TypeExample
int34
real10.0
char"abc"
booleantrue, false
point{50, 100}, {modulo @ angle}
line[{10,10}, {80, 90}]
circlecircle(centre, radius), circle({500,500}, 400)
ellipseellipse(centre, major, minor)
rectanglerectangle({100, 100}, point1)
imageI!ImageFile("gif", "hill.gif")
labellabel L1, L2
L1 = label("abc", {100,100})
image img
L2 = label(img, {200,100})
openshapeopenshape cross
 within cross {
  line l1, l2
  l1 = [{10, -10}, {-10, 10}]
  l2 = [{10, 10}, {-10, -10}]
}
shapeshape S
S = trans(cross, 100, 200)
graphfunc sqr { return $1 * $1; }
%donald
graph g
within g {
  x<i> = 1.0 + <i>
  f<i> = sqr!(x<i>)
  nSegment = 9
  node = [circle:circle({x<i> * 100, f<i> * 10}, 10);
    label:label("(" // rtos(x<i>, ".0f") // "," // rtos(f<i>, ".0f") // ")", {x<i> * 100, f<i> * 10 + 20})]
  segment = [line:[{x<i-1>*100, f<i-1>*10}, {x<i>*100, f<i>*10}]]
}
[an error occurred while processing this directive]