DMS/test.dms

77 lines
1.3 KiB
Plaintext

entry main
enable warnings
//enable debugging
//loadfile "loadtest.dms"
version 1.2
using extendedDefine
[main]
"This works!"
"What's up"
Ryan "Hello \"how\" are you doing?" // this is a comment
Bob "I'm good you?"
tester = "Hello"
food = 3
hi = {1,2,3}
list,test = {{1,2+food,hi[3]},true,tester,123,"This is a string!",false, {3,2,1}},5
a = list[1]
hungry = (-2+4-((5*5)/sqrt(144+5)))^2*2+2
list[1] = "Hello"
var1,var2 = func(1,"string", 2+5)
a = 100 + func(1,"string", 2+5) + 100
func(1,"string", 2+5)
::label::
//Hello im testing stuff
CHOICE "Pick one:"
"first" func()
"second" func()
"third" func()
"forth" func()
for x = 1,10
for y = 1,10,1
for z = 1,10
"test"
"$x$ $y$ $z$"
test = true
test2 = false
count = 0
while count != 100
count++;
"Count = $count$"
if (func(123)!=name[1] or true == "Bob") and foodCount >= 10.34
"test=true or test2=false!"
"help me"
if cool == true
"We are here"
"Nested if"
elseif food >= 21
"This is getting weird"
"Hi"
elseif (func2(321)!=name2[1] or true == "Bob2") and foodCount2 >= 1.78
"This Block"
else
"That Block"
"ah this is why no pop"
[Ryan:char]
age = 24
money = 100
[test:env]
"test"
[newblock:function()]
"Test #2"
"Does it parse this part properly?"