Define name=text macro. If macro name already exists, replace the text for it.
Look for macros in buf and expand them in place. Only look at the text in buf from start to pend.
See Implementation