{"id":13780292,"url":"https://github.com/alimpfard/citron","last_synced_at":"2025-05-11T13:31:55.942Z","repository":{"id":48210374,"uuid":"115635924","full_name":"alimpfard/citron","owner":"alimpfard","description":"General purpose programming language (mainly for unix-like systems)","archived":false,"fork":false,"pushed_at":"2023-08-12T18:52:34.000Z","size":36852,"stargazers_count":62,"open_issues_count":8,"forks_count":5,"subscribers_count":3,"default_branch":"master","last_synced_at":"2024-08-03T18:14:57.514Z","etag":null,"topics":["c","interpreter","programming-language"],"latest_commit_sha":null,"homepage":"","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/alimpfard.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":"2017-12-28T15:29:20.000Z","updated_at":"2024-07-31T11:08:38.000Z","dependencies_parsed_at":"2024-01-17T02:15:57.911Z","dependency_job_id":"9fad9723-ca25-41b1-a713-732f35f2408f","html_url":"https://github.com/alimpfard/citron","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alimpfard%2Fcitron","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alimpfard%2Fcitron/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alimpfard%2Fcitron/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alimpfard%2Fcitron/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/alimpfard","download_url":"https://codeload.github.com/alimpfard/citron/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":225056794,"owners_count":17414209,"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","interpreter","programming-language"],"created_at":"2024-08-03T18:01:14.189Z","updated_at":"2024-11-17T15:31:03.994Z","avatar_url":"https://github.com/alimpfard.png","language":"C","funding_links":[],"categories":["C"],"sub_categories":[],"readme":"## Citron :: A Programming Language for the crazy and people that like functions [![Build Status](https://travis-ci.com/alimpfard/citron.svg?branch=master)](https://travis-ci.com/alimpfard/citron) [![codecov](https://codecov.io/gh/alimpfard/citron/branch/master/graph/badge.svg)](https://codecov.io/gh/alimpfard/citron)\n\n### Release\nA binary release (x86_64 ELF) is available (see [Default Module Resolution](#default-module-resolution) for dynamic modules)\n\nYou can also use the docker image (will probably be auto-built later...)\n```sh\n# to run an interpreter\n$ docker run --rm -it anothertest/citron:latest\n```\n\n### Build guide\nrequired libraries:\n* `libdl`   -- for dynamic loading of modules\n* `libbsd`  -- for utility functions (compile without forLinux defined to get rid of this dependency)\n* `libpcre` -- for regular expressions\n* `libpthread` -- for threading support\n* `libgc` -- for Garbage Collection\n* `libsparsehash` -- Symbol storage\n* `llvm` -- (\u003e= 7) for inline asm (if you're on a braindead distro that adds version numbers to these, add an alias for `llvm-config`)\n\nbuild-time tools:\n* cmake -- for libsocket\n\n#### for the braindead distros (don't kill me)\n```sh\n$ sudo apt install build-essential cmake libbsd-dev libpcre3-dev libgc-dev libsparsehash-dev llvm-8 llvm-8-dev\n```\n\n#### Basic steps to build and install:\n\nclone this repository\n\n```sh\n$ cd citron\n$ git submodule update --init\n$ make\n$ sudo make install\n```\n\n##### Note\nIf the binary is built without ffi, to launch the repl, you must pass these flags to it:\n+ `--assume-non-tty --without-signals`\n\ni.e. the invocation would be `citron --assume-non-tty --without-signals`\n\n\n### Basic language syntax:\nAll operations are done through sending and receiving messages between objects.\n\n`receiver message`\n\n`receiver keyword: 'string' messages: 1, can be: 'chained', like so.`\n\nthere are some examples in the `examples` directory.\n\n\n### Default Module Resolution\nA default module resolution path is assigned at build-time, which normally points to the data directory of the install;\nHowever, this can always be overridden by specifying an environment variable (`CITRON_EXT_PATH` by default).\n\n\n### Scratchpad fun\nAssuming the Tcl extension is built and accessible (the binary build has it); a basic scratchpad can be accessed:\n```sh\n$ citron -m scratchpad\n```\nFor a basic introduction, see [Scratchpad](https://alimpfard.github.io/citron_book/book/scratchpad.html) on the [citron-book](https://alimpfard.github.io/citron_book/book/)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Falimpfard%2Fcitron","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Falimpfard%2Fcitron","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Falimpfard%2Fcitron/lists"}