{"id":18600207,"url":"https://github.com/giraugh/pencilc","last_synced_at":"2026-04-30T14:32:21.763Z","repository":{"id":174431060,"uuid":"652226981","full_name":"giraugh/pencilc","owner":"giraugh","description":"Toy compiler for \"pencil\". A super simple rust-inspired scripting language.","archived":false,"fork":false,"pushed_at":"2023-06-25T13:03:48.000Z","size":139,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-10-08T00:40:15.333Z","etag":null,"topics":["compiler","inkwell","llvm","rust"],"latest_commit_sha":null,"homepage":"","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/giraugh.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,"zenodo":null}},"created_at":"2023-06-11T13:49:14.000Z","updated_at":"2023-09-24T17:08:49.000Z","dependencies_parsed_at":null,"dependency_job_id":"d937c2f0-3b7f-49b0-9fbc-e1cafcb4551a","html_url":"https://github.com/giraugh/pencilc","commit_stats":null,"previous_names":["giraugh/pencilc"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/giraugh/pencilc","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/giraugh%2Fpencilc","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/giraugh%2Fpencilc/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/giraugh%2Fpencilc/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/giraugh%2Fpencilc/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/giraugh","download_url":"https://codeload.github.com/giraugh/pencilc/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/giraugh%2Fpencilc/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32468009,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-30T13:12:12.517Z","status":"ssl_error","status_checked_at":"2026-04-30T13:12:06.837Z","response_time":57,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":["compiler","inkwell","llvm","rust"],"created_at":"2024-11-07T02:03:25.075Z","updated_at":"2026-04-30T14:32:21.759Z","avatar_url":"https://github.com/giraugh.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# ✏️  Pencil Compiler\n\n`pencilc` is my toy compiler project to learn more about compilers and practice rust.\nThe pencil language itself is a subset of rust designed for ease of use (and of implementation hehe).\n\n## Pencil\n\nPencil is a highly derivative toy language designed to be a subset of Rust.\n\n**Planned features**\n\n- [x] Compiling files\n- [ ] Control flow\n- [ ] Strings\n- [ ] Lists\n- [ ] Custom structs\n- [ ] Using external functions from `libc`\n\n## Usage\n\nSimply point `pencilc` at your source file[s].\n\n```bash\npencilc my_file.pencil\n```\n\nRun the help command to see all options\n```bash\npencilc --help\n```\n\n## Dependencies\n\nTo build pencilc you will require the following dependencies\n\n- [A rust toolchain](https://www.rust-lang.org/tools/install)\n- [LLVM v16](https://llvm.org/) (note: can install using homebrew: `brew install llvm`)\n- [Just](https://github.com/casey/just) (optional)\n\n\n\n## Building\n\nFirst clone the repo\n```\ngit clone https://github.com/giraugh/pencilc\n```\n\nTo build and use `pencilc` you will need to provide the path to your llvm installation. `pencilc` expects to see this in\nthe form of an environment variable that points to your llvm path prefix (the path that `/bin`) is in.\n\n*(if you installed llvm using homebrew your prefix will be `/opt/homebrew/opt/llvm`)*\n\nThe easiest way to do this is to create a `.env` file with your prefix in it. Then, when you run the build scripts with `just` it will\nautomatically load the environment.\n```bash\nLLVM_SYS_160_PREFIX=/your/path/to/llvm\n```\n\nOnce you have your environment setup, you can use `pencilc` to compile a source file with `just run \u003csource_file\u003e`.\nYou can also run `just fixture` to compile the provided `sample.pcl` and link it with `fixture.c` to print to stdout. Ater running `just fixture`\nyou can run the executable with `./fixture`.\n\nIf you'd prefer to not use `just` you can provide the environment as an argument when using cargo.\n```\nLLVM_SYS_160_PREFIX=/your/path/to/llvm cargo run -- my_file.pcl\n```\n\nTo build pencilc and have it available without using `cargo` or `just` you can install it with `cargo install`.\n\n## Contributing\n\nAny and all contributions are welcome!\n\n## License\n\nLicensed under MIT\n(Please see the LICENSE file in the repo for more details)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgiraugh%2Fpencilc","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgiraugh%2Fpencilc","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgiraugh%2Fpencilc/lists"}