{"id":27596425,"url":"https://github.com/ziyue-pan/gnc","last_synced_at":"2025-04-22T12:47:21.133Z","repository":{"id":50047427,"uuid":"340587223","full_name":"ziyue-pan/GNC","owner":"ziyue-pan","description":"GNC is Not C. It is intended for a better and more effective c language.","archived":false,"fork":false,"pushed_at":"2022-01-15T00:19:10.000Z","size":7446,"stargazers_count":18,"open_issues_count":0,"forks_count":3,"subscribers_count":0,"default_branch":"main","last_synced_at":"2024-12-13T13:22:35.705Z","etag":null,"topics":["c","llvm","rust"],"latest_commit_sha":null,"homepage":"https://pan-ziyue.github.io/GNC/","language":"Rust","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/ziyue-pan.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}},"created_at":"2021-02-20T07:05:59.000Z","updated_at":"2024-02-28T15:58:03.000Z","dependencies_parsed_at":"2022-08-30T04:01:18.195Z","dependency_job_id":null,"html_url":"https://github.com/ziyue-pan/GNC","commit_stats":null,"previous_names":["ziyue-pan/gnc"],"tags_count":14,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ziyue-pan%2FGNC","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ziyue-pan%2FGNC/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ziyue-pan%2FGNC/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ziyue-pan%2FGNC/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ziyue-pan","download_url":"https://codeload.github.com/ziyue-pan/GNC/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":250243377,"owners_count":21398332,"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":["c","llvm","rust"],"created_at":"2025-04-22T12:47:20.645Z","updated_at":"2025-04-22T12:47:21.125Z","avatar_url":"https://github.com/ziyue-pan.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# GNC\n\n[![Build And Test](https://github.com/PAN-Ziyue/GNC/workflows/CI/badge.svg?event=push)](https://github.com/PAN-Ziyue/GNC/actions?workflow=CI)\n\n\n**GNC** is **N**ot **C**. It is intended for a better and more effective c language.\n\n## Grammar Features\n\n- [x] int main() ...\n- [x] declare local int variable\n- [x] unary operation  \n- [x] binary operation\n- [x] conditional statement\n- [x] loop statement\n- [x] scope \n- [x] function\n- [x] global variable\n- [x] more types\n- [x] cast expression\n- [x] pointer\n- [x] string\n- [x] `scanf()` and `printf()`\n\n## Other Features\n\n- [x] Pest as frontend\n- [x] LLVM as backend\n- [x] Parse tree and AST visualization using AntV\n- [x] HLVM (High Level Virtual Machine Interpreter)\n- [x] Full compiler capabilities in the browser using WASM\n\n## Build\n\n### GNC Cli\n\n```bash\n$ cargo build --package GNC --bin GNC\n```\n\n### GNC Online\n\n```bash\n$ cd forntend\n$ yarn\n$ yarn build\n```\n\n## Test\n\n### Environment\n\n```bash\n# install zx\n$ npm i -g zx\n```\n\n### Run\n\n```bash\n$ cd test\n$ zx ./minidecaf-test.mjs\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fziyue-pan%2Fgnc","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fziyue-pan%2Fgnc","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fziyue-pan%2Fgnc/lists"}