Translate nodes in the abstract syntax tree