add node to AST at each point in the parse