Add buildnode function of parser