Help Contents / Data Structure Primitives / Constructors / makeTree

makeTree alist

outputs a new Tree for the first statement in the list. A Tree is the fundamental data structure, which can be evaluated directly. It contains the information how many arguments are actually there for a procedure call, and groups them. 

Example: 

	makeTree [ifelse 1 != 2 [pr 5 repeat 4 [fd 100 rt 90]][pr "no,no]] 

It should print: 

	[ifelse 	[!= 1 2] 
	"[pr 5 repeat 4 	[fd 100 rt 90] 
	] "[pr "no,no]] 
	 ;-)  


previous: expandBackslashes	next: makeTreeFromBody
