https://github.com/jrincayc/ucblogo-code
Tip revision: 83cc26c4471bbf5be58589e2f43a4caba6b98469 authored by Joshua J. Cogliati on 26 December 2019, 17:49:01 UTC
Adding source code to windows install
Adding source code to windows install
Tip revision: 83cc26c
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]]