{"id":21539104,"url":"https://github.com/profan/thrash-lang","last_synced_at":"2025-07-29T02:04:30.940Z","repository":{"id":79951707,"uuid":"55785679","full_name":"profan/thrash-lang","owner":"profan","description":"a terrible synonym for bash, and a language which compiles to bash for seemingly no reason","archived":false,"fork":false,"pushed_at":"2016-05-28T22:40:58.000Z","size":18,"stargazers_count":1,"open_issues_count":12,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-07-29T02:03:14.106Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"OCaml","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/profan.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":"2016-04-08T14:36:21.000Z","updated_at":"2016-05-05T18:46:55.000Z","dependencies_parsed_at":"2023-05-24T12:00:34.613Z","dependency_job_id":null,"html_url":"https://github.com/profan/thrash-lang","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/profan/thrash-lang","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/profan%2Fthrash-lang","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/profan%2Fthrash-lang/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/profan%2Fthrash-lang/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/profan%2Fthrash-lang/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/profan","download_url":"https://codeload.github.com/profan/thrash-lang/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/profan%2Fthrash-lang/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":267617636,"owners_count":24116207,"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","status":"online","status_checked_at":"2025-07-29T02:00:12.549Z","response_time":2574,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":[],"created_at":"2024-11-24T04:14:07.062Z","updated_at":"2025-07-29T02:04:30.932Z","avatar_url":"https://github.com/profan.png","language":"OCaml","funding_links":[],"categories":[],"sub_categories":[],"readme":"thrash\n---------------\nA small language project for a thing which is intended to compile to bash, mostly because I hate myself and also because I needed some practice writing OCaml and working with dypgen. It will be a dynamic language like bash and mostly mimic it's semantics with the exception of some eq/= etc oddities and various other things like global by default variables which make me hate bash and my life.\n\nThis will probably end up being a horrific melting pot of features over time.\nAlso, using dypgen for this project is probably not necessary, lets consider menhir as LR probably handles our language fine as I think it's free of ambiguities.\n\nProbably put the grammar in not-parser-generator form somewhere later.\n\nAs an important side note, **no-one** should **ever** use this.\n\nExample\n-----------\n```\nlet somevar = 125\nlet somebool = true\n\nif true do\n    25\nelse\n    15\nend\n\nfor x in [1, 2, 3, 4] do\n    65\nend\n\nwhile somefunction(25) do\n\tprintf(10)\nend\n\nif x = 25 do\n    30\nelse\n    25\nend\n```\n\nStructure\n-----------\n* **src** folder holds source files for the compiler, currently just the main which parses and evaluates the single test source file.\n* **data** folder holds data definitions used to generate the parser and lexer.\n* **tests** folder holds samples to be used for testing the compiler.\n\nLicense\n-------\nGNU GPLv3\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fprofan%2Fthrash-lang","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fprofan%2Fthrash-lang","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fprofan%2Fthrash-lang/lists"}