[task] Add a script used to generate c struct