Revision c9391aaa376223018f7c8a4d2c92b9cffdb46cfb authored by chou86_e on 13 September 2008, 23:25:27 UTC, committed by chou86_e on 13 September 2008, 23:25:27 UTC

git-svn-id: https://svn.code.sf.net/p/ucblogo/code@199 fc4ef4ee-df3e-0410-84de-fb01f5d6c4f7
1 parent 063fd0f
Raw File
macroexpand
MACROEXPAND expr					(library procedure)

	takes as its input a Logo expression that invokes a macro (that is,
	one that begins with the name of a macro) and outputs the the Logo
	expression into which the macro would translate the input expression.


		.macro localmake :name :value
		op `[local ,[word "" :name] apply "make [,[:name] ,[:value]]]
		end

		? show macroexpand [localmake "pi 3.14159]
		[local "pi apply "make [pi 3.14159]]


back to top