{"id":39824586,"url":"https://github.com/alehander92/hivemind","last_synced_at":"2026-01-18T13:03:17.984Z","repository":{"id":30963016,"uuid":"34521169","full_name":"alehander92/hivemind","owner":"alehander92","description":"a multi-syntax language","archived":false,"fork":false,"pushed_at":"2016-03-13T09:32:20.000Z","size":49,"stargazers_count":136,"open_issues_count":0,"forks_count":5,"subscribers_count":9,"default_branch":"master","last_synced_at":"2026-01-13T07:29:16.799Z","etag":null,"topics":["compiler","experiment","language","multi-syntax-language"],"latest_commit_sha":null,"homepage":"","language":"Ruby","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/alehander92.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":"2015-04-24T13:47:11.000Z","updated_at":"2025-06-01T02:55:30.000Z","dependencies_parsed_at":"2022-08-20T11:30:46.140Z","dependency_job_id":null,"html_url":"https://github.com/alehander92/hivemind","commit_stats":null,"previous_names":["alehander42/hivemind"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/alehander92/hivemind","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alehander92%2Fhivemind","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alehander92%2Fhivemind/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alehander92%2Fhivemind/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alehander92%2Fhivemind/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/alehander92","download_url":"https://codeload.github.com/alehander92/hivemind/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alehander92%2Fhivemind/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28536686,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-18T10:13:46.436Z","status":"ssl_error","status_checked_at":"2026-01-18T10:13:11.045Z","response_time":98,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: 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","experiment","language","multi-syntax-language"],"created_at":"2026-01-18T13:03:17.931Z","updated_at":"2026-01-18T13:03:17.979Z","avatar_url":"https://github.com/alehander92.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"[![Build Status](https://travis-ci.org/alehander42/hivemind.svg?branch=master)](https://travis-ci.org/alehander42/hivemind)\n[![MIT License](http://img.shields.io/badge/License-MIT-blue.svg)](LICENSE)\n\n# hivemind\n\nA prototype of a multi-syntax programming language.\n\nHivemind has a core language defined by its AST and configurable syntaxes acting like plugins.\n\nThe concept of \"syntax\" for hivemind is similar to\n\n* a theme for a text editor\n* a skin for a gui app\n* a json/html/xml template for a MVC web app\n\nSyntaxes are defined using code-like examples for core ast nodes and they act in a bidirectional way:\n  * they are used to parse source code using that syntax\n  * and to render code in that syntax\n  * **source in each syntax is automatically transltable to another syntax**\n\nTools for the language would also support representations of source grouped by class or methods or as a graph \n\nSyntaxes look like that:\n\nA pythonic syntax:\n\n```python\n#if_statement\nif \u003ctest\u003e:\n    \u003ctrue_branch\u003e\nelse:\n    \u003celse_branch\u003e\n\n#assign\n\u003cleft\u003e = \u003cright\u003e\n\n#call\n\u003cfunction\u003e(\u003c\u003cargs:', '\u003e\u003e)\n\n#attribute\n\u003cobject\u003e.\u003clabel\u003e\n\n#attribute_assign\n\u003cobject\u003e.\u003clabel\u003e = \u003cright\u003e\n\n#binary\n\u003cleft\u003e \u003coperation\u003e \u003cright\u003e\n\n#list\n[\u003c\u003celements:', '\u003e\u003e]\n\n#method_statement\nmethod \u003cmethod_name\u003e(\u003c\u003cargs:', '\u003e\u003e):\n    \u003c\u003cbody\u003e\u003e\n\n#class_statement\nclass \u003cclass_name\u003e:\n    \u003c\u003cmethods:''\u003e\u003e\n\n#module_statement\nmodule \u003cmodule_name\u003e:\n    \u003c\u003celements\u003e\u003e\n\n```\n\nA lisp-like syntax\n\n```\n#if_statement\n(if \u003ctest\u003e\n    \u003ctrue_branch\u003e\n    \u003celse_branch\u003e)\n\n#assign\n(define \u003cleft\u003e \u003cright\u003e)\n\n#method_statement\n(method \u003cmethod_name\u003e (\u003c\u003cargs:' '\u003e\u003e)\n    \u003c\u003cbody\u003e\u003e)\n\n#attribute\n\u003cobject\u003e.\u003clabel\u003e\n\n#attribute_assign\n(update \u003cobject\u003e.\u003clabel\u003e \u003cright\u003e)\n\n#binary\n(\u003coperation\u003e \u003cleft\u003e \u003cright\u003e)\n\n#call\n(! \u003cfunction\u003e \u003c\u003cargs:' '\u003e\u003e)\n\n#list\n_(\u003c\u003celements:' '\u003e\u003e)\n\n#class_statement\n(class \u003cclass_name\u003e\n    \u003c\u003cmethods\u003e\u003e)\n\n#module_statement\n(module \u003cmodule_name\u003e\n    \u003c\u003celements\u003e\u003e)\n```\n\n# Examples\n\n[pythonic example](examples/shape_pythonic.hm)\n[schemelike example](examples/shape_paren.hm)\n\n# Installation\n\n```\ngem install hivemind\n```\n\n# Usage\n\nRun a file\n\n```bash\nhivemind \u003cfilename\u003e\n```\n\nTranslate a file into another syntax representation\n\n```bash\nhivemind render a.hm pythonic a2.hm\n```\n\n# Goals\n\n* Experiment with diffent syntaxes in different contexts\n* Use different sub-language seamlessly across the same codebase\n* A possible solution for the expression problem (just convert between different representations)\n\n\n# Language\n\nThe core language is just a simple python/ruby-like language for now.\n\n\n# History\n\nCreated for the HackFMI 5\n\n# Future development\n\n* fluid folder/file structure representations\n* editor plugins\n* more syntaxes\n\n## License\n\nCopyright 2016 [Alexander Ivanov](https://twitter.com/alehander42)\n\nDistributed under the MIT License.\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Falehander92%2Fhivemind","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Falehander92%2Fhivemind","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Falehander92%2Fhivemind/lists"}