{"id":28604132,"url":"https://github.com/doctorwkt/alic","last_synced_at":"2025-06-11T17:40:30.911Z","repository":{"id":293580860,"uuid":"984493852","full_name":"DoctorWkt/alic","owner":"DoctorWkt","description":"alic: A Language Inspired by C","archived":false,"fork":false,"pushed_at":"2025-06-08T01:12:14.000Z","size":346,"stargazers_count":14,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-06-08T01:39:27.275Z","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":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/DoctorWkt.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":"2025-05-16T02:58:22.000Z","updated_at":"2025-06-08T01:12:18.000Z","dependencies_parsed_at":"2025-06-08T01:39:27.703Z","dependency_job_id":null,"html_url":"https://github.com/DoctorWkt/alic","commit_stats":null,"previous_names":["doctorwkt/alic"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/DoctorWkt/alic","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DoctorWkt%2Falic","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DoctorWkt%2Falic/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DoctorWkt%2Falic/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DoctorWkt%2Falic/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/DoctorWkt","download_url":"https://codeload.github.com/DoctorWkt/alic/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DoctorWkt%2Falic/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":259308163,"owners_count":22837974,"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":"2025-06-11T17:40:24.192Z","updated_at":"2025-06-11T17:40:30.903Z","avatar_url":"https://github.com/DoctorWkt.png","language":"C","funding_links":[],"categories":[],"sub_categories":[],"readme":"# The alic Language\n\nWelcome to my *alic* journey. In my previous [acwj\njourney](https://github.com/DoctorWkt/acwj), I developed a self-compiling\ncompiler for a subset of the C language. In this project, I want to\ndesign a simple procedural language and build a compiler for it.\n\nFor details of what *alic* looks like, see the [docs/](docs/) directory and the example programs in the *tests* directory in the most recent part.\n\n*alic* stands for \"a language inspired by C\". It's going to look quite\na lot like C. I also want to be able to use the existing C library,\nso *alic* has to be ABI compatible with C. But I want to try out some\nnew language ideas and see if they work or not.\n\nIn this journey I'm going to have fewer, bigger chunks of development\nthan I did with [acwj](https://github.com/DoctorWkt/acwj).\nHere are the parts of the *alic* journey so far:\n\n  * [Part 1](Part_01/Readme.md): Built-in Types and Simple Expressions\n  * [Part 2](Part_02/Readme.md): Simple Control Statements\n  * [Part 3](Part_03/Readme.md): A Start on Functions\n  * [Part 4](Part_04/Readme.md): Function Arguments \u0026 Parameters, and Function Calls\n  * [Part 5](Part_05/Readme.md): A Hand-Written Lexer and Parser\n  * [Part 6](Part_06/Readme.md): More Work on Functions\n  * [Part 7](Part_07/Readme.md): A Start on Pointers, A C Pre-Processor and Semantic Errors\n  * [Part 8](Part_08/Readme.md): Opaque Types, Type Aliases, Enumerated Values\n  * [Part 9](Part_09/Readme.md): Adding Structs and Unions\n  * [Part 10](Part_10/Readme.md): Adding Exceptions\n  * [Part 11](Part_11/Readme.md): More C Features\n  * [Part 12](Part_12/Readme.md): Arrays, Finally\n  * [Part 13](Part_13/Readme.md): Rewriting the *alic* Compiler in *alic*\n\nIf you just want to see the language features in *alic* which make it\ndifferent than C, then you can check out these parts:\n[Part 6](Part_06/Readme.md), [Part 8](Part_08/Readme.md),\n[Part 9](Part_09/Readme.md), [Part 10](Part_10/Readme.md),\n[Part 11 (Switch Statements)](Part_11/Readme.md), [Part 12](Part_12/Readme.md).\n\n## Building the Compiler\n\nI'm developing the compiler on a Devuan Linux box, but if you have a Linux box with a C compiler then you should be fine. You will need to download, compile and install:\n\n  * [QBE](https://c9x.me/compile/)\n\nThen you should be able to do a `$ make` in each part to build the executable called `alic`.\n\nThere are a bunch of example test programs in the `tests/` directory in each part. At the top level of each part, do a `$ make test` to go into this directory and run the `runtests` script. This checks the output of each file to ensure it runs correctly, or checks that the compiler dies with the correct fatal error.\n\nIn the [cina/](cina/) directory in Part 13 you will find the *alic* compiler written in the *alic* language itself. To build this, at the top level of Part 13 do a `$ make triple`. This will:\n\n  * Build the compiler using the C source code, producing the *alic* executable\n  * Build the compiler using the *alic* source code, producing the *cina/alica* executable\n  * Build the compiler using the *cina/alica* executable and the *alic* source code, producing the *cina/alicia* executable.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdoctorwkt%2Falic","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdoctorwkt%2Falic","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdoctorwkt%2Falic/lists"}