{"id":13608869,"url":"https://github.com/justlucdewit/cod","last_synced_at":"2025-04-12T17:33:12.341Z","repository":{"id":37245737,"uuid":"501367179","full_name":"justlucdewit/cod","owner":"justlucdewit","description":"cod programming language","archived":false,"fork":false,"pushed_at":"2022-10-01T10:15:44.000Z","size":609,"stargazers_count":24,"open_issues_count":6,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-11-07T14:42:44.665Z","etag":null,"topics":["cod","codlang","compiler","concatenative","hacktoberfest","language","programming-language","stack-based","transpiler"],"latest_commit_sha":null,"homepage":"https://www.codlang.com","language":"Python","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/justlucdewit.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":".github/FUNDING.yml","license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null},"funding":{"github":["justlucdewit"],"patreon":null,"open_collective":null,"ko_fi":null,"tidelift":null,"community_bridge":null,"liberapay":null,"issuehunt":null,"otechie":null,"lfx_crowdfunding":null,"custom":null}},"created_at":"2022-06-08T18:29:20.000Z","updated_at":"2024-07-19T14:35:49.000Z","dependencies_parsed_at":"2023-01-19T01:15:49.734Z","dependency_job_id":null,"html_url":"https://github.com/justlucdewit/cod","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/justlucdewit%2Fcod","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/justlucdewit%2Fcod/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/justlucdewit%2Fcod/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/justlucdewit%2Fcod/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/justlucdewit","download_url":"https://codeload.github.com/justlucdewit/cod/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248605389,"owners_count":21132160,"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":["cod","codlang","compiler","concatenative","hacktoberfest","language","programming-language","stack-based","transpiler"],"created_at":"2024-08-01T19:01:30.645Z","updated_at":"2025-04-12T17:33:07.325Z","avatar_url":"https://github.com/justlucdewit.png","language":"Python","readme":"\u003cdiv align=\"center\"\u003e\n    \u003cimg\n        alt=\"Cod\"\n        src=\"assets/cod-logo.png\"\n        width=\"150\"\u003e\n\u003c/div\u003e\n\n\u003cbr /\u003e\n\n# The Cod Compiler\nCod is an opensource concatenative stack-based general purpose programming language that compiles to C\n\nIn the future, it is planned for the compiler to be bootstrapped meaning it will be written in Cod itself.\n\n\u003cbr /\u003e\n\n# Contribution\nTo Cod is an opensource project and contributions are welcome. If you would like to contribute, please fork the repository, work using github issues, use the ticket notation style used in the issues, and submit a pull request.\n\nHacktoberfest pull requests are welcome including spelling mistakes and grammar fixes.\n\n\u003cbr /\u003e\n\n# Installation\nYou can download the latest version from your operating system on [The cod website](https://codlang.com)\n\nOnce downloaded you can put the executable in your system PATH and then it should work\n\n\u003cbr /\u003e\n\n# Usage\n`cod someScript.cod -o someScript.c`\nfor More help, run `cod --help`\n\nMake sure to download the [standard library](https://github.com/justlucdewit/cod/tree/master/stdlib) in your project root\n\n\u003cbr /\u003e\n\n# Useful links:\n - [COD homepage](https://codlang.com)\n - [COD download page](http://codlang.com/download.html)\n - [COD documentation](http://codlang.com/docs.html)\n - [COD online compiler](http://codlang.com/try-it.html)\n - [COD standard library](https://github.com/justlucdewit/cod/tree/master/stdlib)\n\n# Language\nHello World:\n\n``` lua\n\"Hello World!\" prints\n```\n\nFizzbuzz:\n\n```lua\n-- Fizzbuzz example written in Cod\ninclude \"std/math.cod\"\ninclude \"std/io.cod\"\ninclude \"std/stack.cod\"\n\nalias max_loop_count 40\n\n-- Subroutine to check if number is divisible by another number\nsubroutine divisible_by {\n    % 0 ==\n}\n\n-- Counter\n1\n\n-- Start the loop\ntrue\n\nwhile {\n    pop\n    \n    -- Check if divisible by 3\n    dup 3 divisible_by if {\n        \"fizz\" prints\n    } pop\n\n    -- Check if divisible by 5\n    dup 5 divisible_by if {\n        \"buzz\" prints\n    } pop\n    \n    -- Check if divisible by neither\n    dup 3 divisible_by ! swap dup cycle3 swap 5 divisible_by ! \u0026 if {\n        swap printn swap\n    } pop\n\n    -- Print newline\n    10 printc pop\n\n    -- Increment count\n    1 +\n\n    -- Determain if loop again\n    dup max_loop_count \u003c=\n}\n```","funding_links":["https://github.com/sponsors/justlucdewit"],"categories":["Uncategorized"],"sub_categories":["Uncategorized"],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjustlucdewit%2Fcod","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjustlucdewit%2Fcod","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjustlucdewit%2Fcod/lists"}