{"id":13850561,"url":"https://github.com/JCumin/Brachylog","last_synced_at":"2025-07-12T22:30:57.290Z","repository":{"id":108697899,"uuid":"41436865","full_name":"JCumin/Brachylog","owner":"JCumin","description":"A terse declarative logic programming language","archived":false,"fork":false,"pushed_at":"2020-07-28T08:00:32.000Z","size":6182,"stargazers_count":118,"open_issues_count":11,"forks_count":5,"subscribers_count":11,"default_branch":"master","last_synced_at":"2024-08-05T20:32:48.514Z","etag":null,"topics":["code-golf","declarative","golfing-language","language","logic-programming","prolog","swi-prolog"],"latest_commit_sha":null,"homepage":"","language":"Prolog","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/JCumin.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}},"created_at":"2015-08-26T16:30:16.000Z","updated_at":"2024-06-22T02:45:50.000Z","dependencies_parsed_at":null,"dependency_job_id":"afe331de-9237-4612-9270-8bf1e39f347c","html_url":"https://github.com/JCumin/Brachylog","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JCumin%2FBrachylog","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JCumin%2FBrachylog/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JCumin%2FBrachylog/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JCumin%2FBrachylog/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/JCumin","download_url":"https://codeload.github.com/JCumin/Brachylog/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":225839550,"owners_count":17532305,"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":["code-golf","declarative","golfing-language","language","logic-programming","prolog","swi-prolog"],"created_at":"2024-08-04T20:01:18.621Z","updated_at":"2024-11-22T03:31:34.675Z","avatar_url":"https://github.com/JCumin.png","language":"Prolog","funding_links":[],"categories":["Prolog"],"sub_categories":[],"readme":"\u003cp align=\"center\"\u003e\u003ca href=\"https://github.com/JCumin/Brachylog\"\u003e\u003cimg src=\"https://github.com/JCumin/Brachylog/blob/master/misc/brachylog_logo.png\" alt=\"Brachylog\" width=\"600\"/\u003e\u003c/a\u003e\u003c/p\u003e\n\n# What is it?\n\nBrachylog is a declarative logic programming language much like Prolog. Brachylog is designed to be much terser than Prolog, while retaining some readability.\n\nCurrently in development.\n\nBrachylog uses [SWI-Prolog](http://www.swi-prolog.org/) as Prolog engine.\n\n## How do I use this?\n\n### Documentation\n\nCheck out [Brachylog's Wiki](https://github.com/JCumin/Brachylog/wiki) if you want to learn how to write programs in this language.\n\nYou may want to watch this [**short video introduction to Brachylog**](https://www.youtube.com/watch?v=XYVhZ-MFcUs).\n\n### Try it online!\n\nYou can try out Brachylog on [Try it online!](https://tio.run/nexus/brachylog2), thanks to @DennisMitchell.\n\n### Brachylog language bar\n\n[You can find here](https://abrudz.github.io/lb/brachylog) the Brachylog language bar which gives you access to all symbols used in Brachylog on any webpage (by clicking on the symbols or by inputing shortcuts), thanks to @abrudz.\n\n### The interpreter\n\nBrachylog's interpreter is entirely written in Prolog. Therefore, installing [SWI-Prolog](http://www.swi-prolog.org/) (version 7 and up) is mandatory to use Brachylog (We do not guarantee that Brachylog's interpreter will be compatible with any other Prolog implementation).\n\nTo run Brachylog's interpreter, start SWI-Prolog's interpreter inside the `src` directory available in this repository, and consult the file `brachylog.pl` (`consult(brachylog).`). Alternatively, you can run the interpreter with:\n\n    $ swipl src/brachylog.pl\n\nYou can then run Brachylog programs using different predicates:\n\n - `run_from_file(FileName, Input, Output)`: `FileName` is an atom (i.e. between single quotes `'`) representing the file containing your Brachylog code. For example: `run_from_file('code.brachylog',\"Test Input\",Z)`.\n \n - `run_from_atom(Code, Input, Output)`: `Code` is an atom (i.e. between single quotes `'`) containing your Brachylog code. For example: `run_from_atom('∧\"Hello, World!\"w',_,_)`. Note that you will have to escape certain characters in `Code`.\n\n - `run(Input, Output)`: This will run a Brachylog program that has already been transpiled to Prolog using either of the two previous predicates. More precisely, this will query `brachylog_main/2` in the file `compiled_brachylog.pl`.\n\nThe first two predicates will transpile your Brachylog program into Prolog, subsequently generating a file called `compiled_brachylog.pl` in the same directory that contains `brachylog.pl`. The three run predicates will then consult it and query `brachylog_main/3`.\n \nNote that the first two run predicates also exist with either no `Output` argument, or with no `Input` nor `Output` argument, if necessary. For example, `run_from_file('code.brachylog')` is equivalent to `run_from_file('code.brachylog', _, _)`.\n\n\n### Contributors\n\n- Julien Cumin - [@JCumin](https://github.com/JCumin)\n\n- Markus Triska - [@triska](https://github.com/triska)\n\n- ais523\n\n- [@UnrelatedString](https://github.com/UnrelatedString)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FJCumin%2FBrachylog","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FJCumin%2FBrachylog","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FJCumin%2FBrachylog/lists"}