From: Tim C. <tf...@le...> - 2003-09-19 20:12:38
|
This is a draft of the scripting language. Bounce ideas back. Statements end with a <cr> Variables are defined dynamically and are dynamically typed Types of variables: Float String Operators: Standard math (+ - * /) on floats Assignment, equivilance (=) Statements *Conditional if (condition) end if *Loops while (condition) end while for (a=0;a<5;a++) end for *Functions function name(parm1, parm2) end function *Calling Functions name(parm1, parm2) Only some commands are allowed in the console *Assignment *Calling a function Variables are either global or have scope local to the function they're created in. Commands are executed in order; functions are stored for future execution and any statement outside of a function is executed immedietly. Variables defined outside of any function become global variables, and a local variable by the same name will override them. (Have a way to reference the global one explicitly?) You can't define a function inside of another, although that would seem to be allowed at first glance. -- Tim Cunningham "I'm not claiming to be deep, I'm claiming to do it for fun." - Linus Torvalds |