{"id":24077353,"url":"https://github.com/findstr/zproto","last_synced_at":"2025-04-30T08:11:10.161Z","repository":{"id":81771202,"uuid":"48604860","full_name":"findstr/zproto","owner":"findstr","description":"A simple protocol buffer for (lua, c++, c# )","archived":false,"fork":false,"pushed_at":"2024-10-15T01:31:12.000Z","size":320,"stargazers_count":10,"open_issues_count":0,"forks_count":5,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-30T14:11:49.244Z","etag":null,"topics":["parser","serializer","wire"],"latest_commit_sha":null,"homepage":"","language":"C","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/findstr.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2015-12-26T08:44:48.000Z","updated_at":"2024-10-15T01:31:16.000Z","dependencies_parsed_at":"2023-04-19T20:33:18.501Z","dependency_job_id":null,"html_url":"https://github.com/findstr/zproto","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/findstr%2Fzproto","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/findstr%2Fzproto/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/findstr%2Fzproto/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/findstr%2Fzproto/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/findstr","download_url":"https://codeload.github.com/findstr/zproto/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":251666283,"owners_count":21624293,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["parser","serializer","wire"],"created_at":"2025-01-09T20:16:07.027Z","updated_at":"2025-04-30T08:11:10.143Z","avatar_url":"https://github.com/findstr.png","language":"C","funding_links":[],"categories":[],"sub_categories":[],"readme":"# zproto\nA simple protocol buffer for lua\n\n## Description\n\n- Struct consist of members, the type of which can be basic type or other struct type\n- Basic type can be 'boolean' or 'integer' or 'long' or 'string'\n- All comment line begin with '#'\n- All struct or field name begin with 'a-zA-Z'\n- All field name must be defined after the character '.'\n- Struct or field name and field tag must be unique in it's scope\n- Field tag must large then 0 and defined by ASC\n- When the suffix of type(include struct and basic type) is [], it means this field is array\n- Struct can be defined as follows:\n\n\t\t#only the struct which has no parent can specify the protocol\n\t\t#protocol is aka struct name when it's explicitly specified\n\t\t#protocol is option and default value is '0'\n\t\t#protocol value can be queryed by zproto:tag@zproto.lua\n\t\tname [protocol] {\n\t\t\t.name:type 1\n\t\t\t...\n\t\t}\n\n- A sample protocol define may like this:\n\n\t\t#comments line\n\t\tinfo {\n\t\t\t.name:string 1\n\t\t\t.age:integer 2\n\t\t\t.girl:boolean 3\n\t\t}\n\t\tpacket 0xfe {\n\t\t\tphone {\n\t\t\t\t.home:integer 1\n\t\t\t\t.work:long 2\n\t\t\t}\n\t\t\t.phone:phone 1\n\t\t\t.info:info[] 2\n\t\t\t.address:string 3\n\t\t\t.luck:integer[] 4\n\t\t}\n\n##luabind\n\nThis code is a simply lua binding of zproto in luabind folder\n\nIt provide a simple test code and you can run it as follow:\n\n- Download lua-5.3 or later and extract into luabind/lua53\n- Execute 'make linux' or 'make macosx' to build zproto.so\n- Execute './test' to run the test code\n\n##cppbind and csbind\n\nThis code is a simply [C++|C#] binding of zproto in [cppbind|csbind] folder\n\nIt also provide a simple test code and you can run it as follow:\n\n- Execute 'make' to build a executable file named 'zproto',\n\t'zproto' used to generate [C++|C#] bind code from a file defined as zproto syntax\n- Execute './zproto test.zproto' to generate [C++|C#] bind code for test.zproto\n- Execute 'make test' to build a test program\n- Execute './test' to run the test code.\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffindstr%2Fzproto","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffindstr%2Fzproto","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffindstr%2Fzproto/lists"}