Created a small ast builder api for postponing the construction of ast
till after certain dependencies have been fulfilled such as argument and
variable ordinal allocation.

Signed-off-by: Jakob Brandsborg Ehmsen <jakobehmsen.github@gmail.com>