Script parsing and runtime skeleton