https://github.com/jrincayc/ucblogo-code
Revision 5d18e80864eb0edade94c46f6e180952129f0f25 authored by Joshua J. Cogliati on 28 December 2020, 17:31:21 UTC, committed by Joshua J. Cogliati on 28 December 2020, 17:31:21 UTC
2 parent s 707422d + d8fc446
Raw File
Tip revision: 5d18e80864eb0edade94c46f6e180952129f0f25 authored by Joshua J. Cogliati on 28 December 2020, 17:31:21 UTC
Merge remote-tracking branch 'origin/master' into release_6_2_work
Tip revision: 5d18e80
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