Parse and compile string