update abstract syntax tree