{"id":19813922,"url":"https://github.com/azer0s/hadeslang","last_synced_at":"2025-05-01T10:31:03.750Z","repository":{"id":136692615,"uuid":"76548198","full_name":"Azer0s/HadesLang","owner":"Azer0s","description":"The Hades Programming Language","archived":false,"fork":false,"pushed_at":"2020-05-04T12:42:48.000Z","size":1991,"stargazers_count":36,"open_issues_count":1,"forks_count":1,"subscribers_count":8,"default_branch":"develop","last_synced_at":"2025-04-06T12:06:44.903Z","etag":null,"topics":["csharp","dotnet-core","interpreter","language","programming-language","scripting-language","wip"],"latest_commit_sha":null,"homepage":"https://hadeslang.gitbook.io/doc","language":"C#","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/Azer0s.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","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}},"created_at":"2016-12-15T10:03:12.000Z","updated_at":"2023-07-15T15:12:13.000Z","dependencies_parsed_at":null,"dependency_job_id":"abcc099d-72d4-4c83-9db2-408393b9ae76","html_url":"https://github.com/Azer0s/HadesLang","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Azer0s%2FHadesLang","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Azer0s%2FHadesLang/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Azer0s%2FHadesLang/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Azer0s%2FHadesLang/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Azer0s","download_url":"https://codeload.github.com/Azer0s/HadesLang/tar.gz/refs/heads/develop","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":251859793,"owners_count":21655621,"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":["csharp","dotnet-core","interpreter","language","programming-language","scripting-language","wip"],"created_at":"2024-11-12T09:37:39.497Z","updated_at":"2025-05-01T10:31:03.738Z","avatar_url":"https://github.com/Azer0s.png","language":"C#","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003cimg src=\"assets/IconShort.png\" alt=\"logo\" width=\"200\" align=\"left\"/\u003e\n\n## [WIP] Hades Programming Language\n\n[![Build Status](https://travis-ci.org/Azer0s/HadesLang.svg?branch=master)](https://travis-ci.org/Azer0s/HadesLang)\n[![License](https://img.shields.io/badge/license-MIT-brightgreen.svg)](https://github.com/Azer0s/HadesLang/blob/master/LICENSE)\n\n## Welcome!\n\nThis is the official repository for the reference implementation of the Hades Programming Language (standard library \u0026 interpreter).\n\n### Hello world\n```js\nwith console from std:io\nconsole.out(\"Hello world\")\n```\n\n### Pipelines\n```js\nwith list fixed from std:collections\nwith console from std:io\n\nvar fruits = list.of({\"Apple\", \"Banana\", \"Mango\", \"Kiwi\", \"Avocado\"})\n\nfruits\n|\u003e map(??, {x =\u003e x.toLower()})\n|\u003e filter({x =\u003e x.startsWith(\"a\")})\n//if ?? is not in the parameters, the method is inserted as the first parameter\n|\u003e forEach(??, {x =\u003e console.out(x)})\n```\n\n### Function guards\n```swift\nwith console from std:io\n\nfunc myFunction(a int) requires a \u003c 10\n    console.out(\"a is smaller than 10\")\nend\n\nfunc myFunction(a int) requires a \u003e 10\n    console.out(\"a is greater than 10\")\nend\n\nmyFunction(5) // a is smaller than 10\nmyFunction(17) // a is greater than 10\n```\n\n### Actors\n```swift\nwith msg from std:io\nwith sleep from std:time\n\nfunc ping()\n    receive(m)\n        {:ping, data} =\u003e {_ =\u003e\n            sleep.seconds(1)\n            send(data, :pong)\n        }\n    end\n    ping()\nend\n\nfunc pong()\n    receive(m)\n        {:pong, data} =\u003e {_ =\u003e\n            sleep.seconds(1)\n            send(data, :ping)\n        }\n    end\n    pong()\nend\n\nvar pingPid = spawn({_ =\u003e ping()}\nvar pongPid = spawn({_ =\u003e pong()}\n\nsend(pingPid, {:ping, pongPid})\n```\n\n### Fibonacci sequence\n```js\nwith console from std:io\n\nfunc fib(n)\n    if((n is 0) or (n is 1))\n        put n\n    end\n    \n    put fib(n-1) + fib(n-2)\nend\n\nfib(10) |\u003e console.out\n```\n\n### Optional static typing\n```js\nwith console from std:io\n\nfunc fib(n int64) -\u003e int64\n    if((n is 0) or (n is 1))\n        put n\n    end\n    \n    put fib(n-1) + fib(n-2)\nend\n\nfib(10) |\u003e console.out\n```\n\n## Getting Started\n\nLearning Hades and writing your first programs.\n\n### [Installing Hades](https://hadeslang.gitbook.io/doc/getting-started/installing-hades)\n\nInstructions for downloading HadesLang and/or embedding it into your programs.\n\n### [Basic Syntax](https://hadeslang.gitbook.io/doc/getting-started/basic-syntax)\n\nHades basics and quick introduction into the language.\n\n### [Coding Conventions](https://hadeslang.gitbook.io/doc/getting-started/coding-conventions)\n\nCurrent coding style for HadesLang.\n\n## References\n\n### [Language Spec](https://hadeslang.gitbook.io/doc/language-spec)\n\nThe official HadesLang specification.\n\n### [Package Documentation](https://hadeslang.gitbook.io/doc/core-libraries/standard-library)\n\nDocumentation and definition of the Hades standard library.\n\n### [Tool Documentation](https://hadeslang.gitbook.io/doc/other/tools)\n\nDocumentation for HadesLang tools.\n\n### [Examples](https://hadeslang.gitbook.io/doc/other/examples)\n\nExamples of Hades in use.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fazer0s%2Fhadeslang","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fazer0s%2Fhadeslang","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fazer0s%2Fhadeslang/lists"}