https://github.com/jrincayc/ucblogo-code
Raw File
Tip revision: 0ba6ad1629f94a89f98e2bf884c1388c6ee78b6d authored by Joshua Cogliati on 29 December 2021, 15:19:51 UTC
Updating version to 6.2.2 (#120)
Tip revision: 0ba6ad1
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