added getcopy() code to the syntaxtree file (for expanding macros)