parse_script and a test.