Implement script source parsing