{"id":13782999,"url":"https://github.com/16Bitt/libcc","last_synced_at":"2025-05-11T17:30:36.188Z","repository":{"id":78436599,"uuid":"50511039","full_name":"16Bitt/libcc","owner":"16Bitt","description":"A small library for building simple interpreters and compilers","archived":false,"fork":false,"pushed_at":"2016-04-21T04:18:05.000Z","size":21,"stargazers_count":2,"open_issues_count":0,"forks_count":2,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-08-03T18:18:04.468Z","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/16Bitt.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,"governance":null,"roadmap":null,"authors":null}},"created_at":"2016-01-27T13:58:36.000Z","updated_at":"2024-08-03T18:18:04.469Z","dependencies_parsed_at":"2023-04-17T00:43:52.859Z","dependency_job_id":null,"html_url":"https://github.com/16Bitt/libcc","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/16Bitt%2Flibcc","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/16Bitt%2Flibcc/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/16Bitt%2Flibcc/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/16Bitt%2Flibcc/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/16Bitt","download_url":"https://codeload.github.com/16Bitt/libcc/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":253604386,"owners_count":21934851,"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-08-03T18:01:50.567Z","updated_at":"2025-05-11T17:30:35.894Z","avatar_url":"https://github.com/16Bitt.png","language":"C","funding_links":[],"categories":["C"],"sub_categories":[],"readme":"LibCC\n----------\n\nLibCC is a very simple static library for building compilers and interpreters in the same vain as Jack Crenshaw's *Let's Build a Compiler* series, but aimed at a more modern C-style approach\n\nDependencies\n------------\n\nThis project has next to no dependencies.\n\n* C Compiler\n* Make\n* C Standard Library\n\nUsage\n------------\n\nMost of the usage is covered `libcc.h`, but the basics are as follows:\n\n* `look` is the lookahead character\n* Use `libcc_init` to start processing a file\n* `error`, `warning`, and `emit` all support `printf` variadic arguments\n* `getname`, `getnumber`, and so on all read from the stream\n* `peekname` can be used to take a look at the next identifier in the stream\n* `match` and `expected` can be used to handle syntax requirements\n\nExamples\n--------\n\nThe best example I have is included with the library! Simply use `make run` and a simple C compiler will be built. Look at the source in the `test/` directory for more information.\n\nContributing\n------------\n\nFeel free to add issues for suggestions and needed improvements! This is a small and very young project, but any help is greatly appreciated. In addition, if you need help using it, don't be afraid to ask.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2F16Bitt%2Flibcc","html_url":"https://awesome.ecosyste.ms/projects/github.com%2F16Bitt%2Flibcc","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2F16Bitt%2Flibcc/lists"}