ast: typedefenition complete
ast global statements done
added a default option for building the ast