first pass error detection

also fixed bizarre '=' detection issue in tree grammar and reverted to
IDENT from WORD to keep lexer happy