Added intermediate code generating algorithm to Node