{"id":13648644,"url":"https://github.com/vickenty/lang-c","last_synced_at":"2025-10-06T21:48:24.433Z","repository":{"id":43894916,"uuid":"107876084","full_name":"vickenty/lang-c","owner":"vickenty","description":"Lightweight C parser for Rust","archived":false,"fork":false,"pushed_at":"2024-07-04T22:55:36.000Z","size":509,"stargazers_count":217,"open_issues_count":12,"forks_count":33,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-28T00:05:57.177Z","etag":null,"topics":["ast","c","parser","rust-library"],"latest_commit_sha":null,"homepage":"","language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/vickenty.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE-APACHE","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":"2017-10-22T15:03:01.000Z","updated_at":"2025-03-16T12:10:28.000Z","dependencies_parsed_at":"2024-01-14T10:59:30.050Z","dependency_job_id":"2f490434-41cf-4b70-9e29-9757db2472d6","html_url":"https://github.com/vickenty/lang-c","commit_stats":{"total_commits":140,"total_committers":8,"mean_commits":17.5,"dds":"0.12142857142857144","last_synced_commit":"30e1c249e07f4f00fbc3959126642d5969cebd1e"},"previous_names":[],"tags_count":20,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vickenty%2Flang-c","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vickenty%2Flang-c/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vickenty%2Flang-c/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vickenty%2Flang-c/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/vickenty","download_url":"https://codeload.github.com/vickenty/lang-c/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247103301,"owners_count":20884023,"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":["ast","c","parser","rust-library"],"created_at":"2024-08-02T01:04:25.408Z","updated_at":"2025-10-06T21:48:19.398Z","avatar_url":"https://github.com/vickenty.png","language":"Rust","funding_links":[],"categories":["Rust"],"sub_categories":[],"readme":"# Lang-C\n\n[![Documentation](https://docs.rs/lang-c/badge.svg)](https://docs.rs/lang-c)\n\nLigtweight parser of C language for Rust users. Almost full support for C11 revision of the language.\nSeveral GCC and Clang extensions are also supported as an option.\n\n```rust\nextern crate lang_c;\nuse lang_c::driver::{Config, parse}; \n\nfn main() {\n    let config = Config::default();\n    println!(\"{:?}\", parse(\u0026config, \"example.c\"));\n}\n```\n\n# Bugs\n\nJust open an issue, bug reports and patches are most welcome. \n\n## License\n\nDual-licenced under Apache 2.0 or MIT licenses (see `LICENSE-APACHE` and `LICENSE-MIT` for legal terms).\n\n## Development\n\nA number of external tools are used during development:\n\n- GNU make\n- rustfmt\n- [rust-peg](https://github.com/kevinmehall/rust-peg) 0.5.4\n\nParser (`src/parser.rs`) is built from a PEG grammar in `grammar.rustpeg`. It is updated manually and then \ncommitted, not generated on every build, thus no `rust-peg` in the list of dependencies.\n\nFor debugging purposes, it is handy to have a version rust-peg built with tracing enabled.\n\nA makefile is used to script the development process:\n\n- `make` update parser, build the library and run the tests;\n- `make trace` rebuilds parser using `rust-peg-trace`, which is expected to be a version of `rust-peg` command with `trace` feature enabled\n- `make check` can be used as pre-commit git hook to make sure parser is up to date\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvickenty%2Flang-c","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fvickenty%2Flang-c","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvickenty%2Flang-c/lists"}