parseManager/test.dms
Ryan Ward 7f12111deb Fixing nested functions
Math and nested functions dont work
2019-03-27 09:14:30 -04:00

26 lines
447 B
Plaintext

ENTRY MAIN
USING extendedDefine
VERSION 4.1 //The version that nested functions was introduced
[MAIN]{
// New feature functions inside of functions
a = hmm(5,1)
"a = $a$"
b = hmm(hmm(6,hmm(1,1)),5 + sqrt(100))
"b = $b$"
}
[hmm:function(a,b)]{
return a+b
}
// [TEST]{
// newThread("TEST2")
// ::loop::
// print("Hello!")
// sleep(.5)
// GOTO("loop")
// }
// [TEST2]{
// ::loop::
// print("Hi!")
// sleep(1)
// GOTO("loop")
// }