entry main
enable warnings
disable omniscient
//enable debugging
loadfile "loadtest.dms"
version 1.2
using extendedDefine


[main] {
	Ryan: "This works!"
	DEBUG "What's up" // Debug lines are removed when debug mode is disabled
	Ryan: {
		speed 100%;calm "Hello Bob, "
		wait 0.455
		excited "how are you doing?"
		// Becomes: Hello Bob, how are you doing?
	}
	
	tester = "Hello"
	food = 3
	a = list[1]
	
	if statment {
		"test"
	} elseif statement {
		"test"
		} if statement {
			"test"
			"test"
			if statement {
				"test"
			} else {
				"test"
			}
		} elseif statement {
			"test"
		} else {
			"test"
		}
	
	goto "somewhere"
	jump "overhere"

	hungry = (-2+4-((5*5)/sqrt(144+5)))^2*2+2
	list[1] = "Hello"
	var1 = func(1,"string", 2+5)
	a = 100 + func(1,"string", 2+5) + 100
	func(1,"string", 2+5)
	::mylabel::
	//Hello im testing stuff
	
	CHOICE "Pick one:" {
		"first" func(1,2,3)
		"second" func(true,false)
		"third" func("hehe")
		"forth" func("1",2,false)
		"fifth" goto "here"
		"sixth" goto name
		"sevinth" jump "there"
		"eight" jump name
		"nine" exit
		"ten" exit 0
	}
}



[Bob:char]
	age = 24
	money = 100

[newblock:function()]
	"Test #2"
	"Does it parse this part properly?"
