{"id":15724323,"url":"https://github.com/cedlemo/lua-truckboris","last_synced_at":"2025-03-31T01:14:19.917Z","repository":{"id":144939693,"uuid":"45458719","full_name":"cedlemo/lua-truckboris","owner":"cedlemo","description":"Lua bindings for the truckboris library","archived":false,"fork":false,"pushed_at":"2015-11-04T17:17:42.000Z","size":180,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-02-06T06:24:26.236Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"C++","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/cedlemo.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2015-11-03T10:20:59.000Z","updated_at":"2015-11-03T10:23:39.000Z","dependencies_parsed_at":"2023-04-04T21:03:14.055Z","dependency_job_id":null,"html_url":"https://github.com/cedlemo/lua-truckboris","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/cedlemo%2Flua-truckboris","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cedlemo%2Flua-truckboris/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cedlemo%2Flua-truckboris/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cedlemo%2Flua-truckboris/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/cedlemo","download_url":"https://codeload.github.com/cedlemo/lua-truckboris/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246399798,"owners_count":20770908,"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":[],"created_at":"2024-10-03T22:16:10.984Z","updated_at":"2025-03-31T01:14:19.897Z","avatar_url":"https://github.com/cedlemo.png","language":"C++","funding_links":[],"categories":[],"sub_categories":[],"readme":"# lua Truckboris\n\nlua bindings to the truckboris library. (https://github.com/cedlemo/truckboris)\n\n```lua\nlocal truckboris = require(\"truckboris\")\n\nlocal parser = truckboris.HeaderParser()\nparser:add_source_file(\"./test_cpp\")\nparser:add_search_path(\"/usr/include\")\n\nhas_worked = parser:parse()\n\nif has_worked == true then\n  print(\"Parsing has worked\")\nend\n\nlocal functions = {}\n\nfor i = 1, parser:functions_num(), 1 do\n  functions[i] = parser:get_nth_function(i - 1)\nend\n\nfor _,f in ipairs(functions) do\n  print(\"Name : \" .. f:name() )\n  print(\"\\tReturn : \" .. f:return_type():name())\n  local params = {}\n  for j = 1, f:parameters_num(), 1 do\n    params[j] = f:get_nth_parameter(j-1)\n  end\n\n  for _,p in ipairs(params) do\n    print(\"\\t\\tParam : \".. p:type():name() .. \"  \" .. p:name())\n  end\nend\n```\n\n# Build:\n\n## Standard:\n\nThe autotools will detect automaticaly your lua version\nand install the library in a path build on the prefix variable.\n\n    ./autogen.sh --prefix=/usr\n    make\n    sudo make install\n\nThe library files will be isntalled in /usr/lib/lua/LUA_VERSION/trucboris.\n\n## Custom directory:\n\nYou can still use the *libdir* variable. If your current version of lua\nis 5.3 for example:\n\n    ./autogen.sh --libdir=/usr/lib/lua/5.3\n    make\n    sudo make install\n\n\n# Clean:\n\n    sudo make uninstall\n    make maintainer clean\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcedlemo%2Flua-truckboris","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcedlemo%2Flua-truckboris","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcedlemo%2Flua-truckboris/lists"}