1 Program HelloWorld 2 3 const GREETING string = "Hello, "; 4 5 function main() 6 myName string = "John"; 7 sayHello(myName); 8 end 9 10 function sayHello(name String in) 11 SysLib.writeStdOut(GREETING + name + "!"); 12 end 13 14 end An EGL Record part defines a set of data elements.
1 Program HelloWorld 2 3 const GREETING string = "Hello, "; 4 5 function main() 6 myName string = "John"; 7 sayHello(myName); 8 end 9 10 function sayHello(name String in) 11 SysLib.writeStdOut(GREETING + name + "!"); 12 end 13 14 end Unha parte de rexistro EGL define un conxunto de elementos de datos.