A abstract syntax tree based Script API