{"id":19880455,"url":"https://github.com/exsandebest/penguin","last_synced_at":"2025-07-18T11:36:38.960Z","repository":{"id":85775682,"uuid":"231745133","full_name":"exsandebest/Penguin","owner":"exsandebest","description":" С++-like programming language Penguin with interpreter","archived":false,"fork":false,"pushed_at":"2023-10-26T22:16:58.000Z","size":272,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-03-01T02:44:58.388Z","etag":null,"topics":["interpreter","language","lexical-analyzer","penguin","penguin-programming-language","programming-language","syntax-analyzer"],"latest_commit_sha":null,"homepage":"","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/exsandebest.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}},"created_at":"2020-01-04T10:29:46.000Z","updated_at":"2023-12-03T22:09:42.000Z","dependencies_parsed_at":null,"dependency_job_id":"c9658844-9de4-45b3-b5d5-36f2bcbb680c","html_url":"https://github.com/exsandebest/Penguin","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/exsandebest/Penguin","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/exsandebest%2FPenguin","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/exsandebest%2FPenguin/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/exsandebest%2FPenguin/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/exsandebest%2FPenguin/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/exsandebest","download_url":"https://codeload.github.com/exsandebest/Penguin/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/exsandebest%2FPenguin/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":265752228,"owners_count":23822925,"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":["interpreter","language","lexical-analyzer","penguin","penguin-programming-language","programming-language","syntax-analyzer"],"created_at":"2024-11-12T17:11:25.556Z","updated_at":"2025-07-18T11:36:35.876Z","avatar_url":"https://github.com/exsandebest.png","language":"C++","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Penguin\nPenguin programming language\n## Getting started\n**You have to compile all files from ``src/``**  \n\n**You can run ``scripts/make.cmd`` (for Windows) or ``scripts/make.sh`` (for Linux) to do that or use ``CMakeLists.txt``**\n## Usage\n``Penguin path/to/program.peng``  \n## Examples\nSee examples at [`examples/`](https://github.com/exsandebest/Penguin/tree/master/examples)\n\nUsage:\n  - ``Penguin examples/a/a.peng``  \n  - ``Penguin examples/b/b.peng \u003c examples/b/in/1.in``\n## Tests\n**You can run tests with ``scripts/tests.bat`` or ``scripts/tests.sh``**  \n## Docs\n* [Grammar (Google Docs)](https://docs.google.com/document/d/1y9UAdCVIHkVw3AbSU_anU4KZSvI54mrA7OSpKjKvKgw) / [Grammar (Repo docs)](https://github.com/exsandebest/Penguin/tree/master/docs/grammar.ebnf)\n* [Types of tokens (Google Sheets)](https://docs.google.com/spreadsheets/d/1OBjwfQxot8h_A8aIbHIXjujbpoGofYAS0elkgWege0g) / [Types of tokens (Repo docs)](https://github.com/exsandebest/Penguin/tree/master/docs/token_types.md)\n* [Priority of operations (Google Sheets)](https://docs.google.com/spreadsheets/d/13oeLWDSUfdM0VBEn_MVFWN4l8zxK8_NX0-rdQLC79vI) / [Priority of operations (Repo docs)](https://github.com/exsandebest/Penguin/tree/master/docs/priority_table.md)\n## Description\n* Variable types\n    * `int`: `1`, `-5`, `0` - `int a = 7;`\n    * `double`: `0.2`, `.4`, `.5e2`, `7.3E-5` - `doule b = 1.0e-3;`\n    * `string`: `\"Hello World!\"` - `string c = \"teststring\";`\n    * `bool`: `true`, `false` - `bool d = true;`\n* Operators\n    * Logical operators: `and`, `or`, `xor`\n    * Comparison operators: `\u003e`, `\u003c`, `\u003e=`, `\u003c=`, `==`, `!=`\n    * Mathematical operators: `+`, `-`, `*`, `/`, `%`, `**` (power), `++` (prefix), `--` (prefix)\n    * Assignments operators: `=`\n* Comments\n    * `/* ... */`\n* Functions\n    * `bool isEven(int a) { return a % 2 == 0; }`\n    * Function operators: `return`\n    * All functions are in global scope by default\n      ```c++\n      null main() { write(isEven(10)); }\n      bool isEven(int a) { return a % 2 == 0; }\n      /* No need to place a function before its usage */\n      ```\n* Cycles\n    * `for`: `for (int i = 0; i \u003c 10; ++i) { ... }`\n    * `while`: `while (i \u003c 5) { ... }`\n    * Cycle operators: `break`, `continue`\n* Conditional operators:\n    * `if (x \u003e 5) { ... }`\n    * `else if (x \u003c 2) { ... }`\n    * `else { ... }`\n* Built-in functions\n    * `read(a, b);`\n    * `write(x, \" + \", y, \" = \", x + y);`\n* Local scopes  \n    [`exsamples/a/a.peng`](https://github.com/exsandebest/Penguin/tree/master/examples/a/a.peng):\n    ```c++\n    null main() {\n        int a;\n        read(a);\n        if (a \u003e 2) {\n            string a = \"str\";\n            write(a);\n        } else {\n            bool a = true;\n            write(a);\n        }\n        write(a + 2);\n    }\n    ```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fexsandebest%2Fpenguin","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fexsandebest%2Fpenguin","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fexsandebest%2Fpenguin/lists"}