Auto-generate code files by one document, which describes one protocol