{"id":25818975,"url":"https://github.com/codejapoe/c-slash","last_synced_at":"2025-08-08T15:48:27.993Z","repository":{"id":196870903,"uuid":"697341515","full_name":"codejapoe/C-Slash","owner":"codejapoe","description":"C-Slash (C/) is a tiny open-source programming language developed in C++. Codes in this repo are free to use and modify.","archived":false,"fork":false,"pushed_at":"2024-03-19T07:27:44.000Z","size":87,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-28T14:13:25.911Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://saunik.net/#projects","language":"C++","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/codejapoe.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null}},"created_at":"2023-09-27T14:30:56.000Z","updated_at":"2024-12-04T13:23:40.000Z","dependencies_parsed_at":null,"dependency_job_id":"b006498a-e1c9-454f-8e8f-4717cb7412e3","html_url":"https://github.com/codejapoe/C-Slash","commit_stats":null,"previous_names":["codejapoe/c-slash"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/codejapoe/C-Slash","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codejapoe%2FC-Slash","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codejapoe%2FC-Slash/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codejapoe%2FC-Slash/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codejapoe%2FC-Slash/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/codejapoe","download_url":"https://codeload.github.com/codejapoe/C-Slash/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codejapoe%2FC-Slash/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":261217473,"owners_count":23126258,"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":[],"created_at":"2025-02-28T08:14:16.285Z","updated_at":"2025-06-22T00:40:54.070Z","avatar_url":"https://github.com/codejapoe.png","language":"C++","funding_links":[],"categories":[],"sub_categories":[],"readme":"# C-Slash Programming\nC-Slash (C/) is a tiny open-source programming language developed in C++. Codes in this repo are free to use and modify.\n## Installation\n\nDownload the \"c-slash.exe\" (Windows) or \"c-slash\" (Linux/Mac).\n(If the \"c-slash\" does not work, please download \"c-slash.cpp\" file and compile it by yourself.)\n\n## Printing C-Slash information\n```bash\nc-slash --info\n```\n\n## Running the code file\nThe \"main.csl\" file can be found as an example in the repo.\n```bash\nc-slash \u003cfilename\u003e.csl\n```\n(or)\n```bash\n./c-slash \u003cfilename\u003e.csl\n```\n\n## Comments\n```bash\n// This is a comment.\n```\n```bash\n/* This is a comment\n   written in more than\n   just one line. */\n```\n\n## Standard output\n```bash\noutput(\"Hello, World!\");\n```\n\n## Standard input\nThe input() function accepts two arguments: variable name, and type (such as string, integer, float).\n```bash\noutput(\"Enter a string:\");\ninput(text, str);\n```\n```bash\noutput(\"Enter an integer:\");\ninput(num, int);\n```\n```bash\noutput(\"Enter a float:\");\ninput(float_num, float);\n```\n\n## Variables\nA variable can be any of four types: string, integer, float, and boolean.\n\n### Assigning\nString\n```bash\nvar name = \"Codejapoe\";\n```\nInteger\n```bash\nvar age = 16;\n```\nFloat\n```bash\nvar net_worth = 7500000.00;\n```\nBoolean\n```bash\nvar is_under_18 = true;\n```\n\n### Modifying\nPlease do not forget to put \"var\" keyword to modify a value.\n```bash\nvar age = 15; // assign\nvar age = 16; // modify\n```\n\n## Arithmetic Operators\nAddition:\n```bash\nvar a = 3;\nvar b = 4;\nvar c = a + b + 3; \n// 10\n```\n```bash\nvar a = 3;\nvar a = a + 1;\n// 4\n```\nSubtraction:\n```bash\nvar a = 1;\nvar b = a - 2; \n// -1\n```\nMultiplication:\n```bash\nvar a = 3;\nvar b = 4;\nvar c = a * b \n// 12\n```\nDivision:\n```bash\nvar a = 10;\nvar b = 2;\nvar c = a / b \n// 5\n```\n\n## Output\nVariable:\n```bash\nvar name = \"Codejapoe\";\noutput(\"Hello, I am ${name}.\");\n```\nExpression:\n```bash\nvar age = 16;\noutput(\"I'm turning ${age + 1}.\");\n\n\u003e\u003e\u003e I'm turning 17.\n```\nEscape sequence:\n```bash\noutput(\"\\\"Once upon a time, ...\\\"\");\n\n\u003e\u003e\u003e \"Once upon a time, ...\"\n```\n```bash\noutput(\"\\$1 = 3,400 MMK\");\n\n\u003e\u003e\u003e $1 = 3,400 MMK\n```\n```bash\noutput(\"Hello, World!\\\\I am leaning C-Slash.\");\n\n\u003e\u003e\u003e Hello, World!\\I am leaning C-Slash.\n```\n\n### type() function\nFriendly Reminder: This function only works with output() function.\n```bash\nvar text = \"hello\"\noutput(\"Data \\\"${text}\\\" has the type of ${type(text)}.\");\n\n\u003e\u003e\u003e Data \"hello\" has the type of str.\n```\n## Features\n\n- Works on Windows, Mac, and Linux\n- Fast and easy to set up and run\n- Works with or without semi-colon in multiple code-lines (Semi-colons must be used in a single code-line.)\n\n## Acknowledgements\nI am not sure about the further development of this programming lanaguage. This is why I set this project as an open-source project. You may modify as you like and send the source code to my email address: codejapoe@gmail.com. You can further develope on if-else statement, loops, functions, and OOP. Anyone who updated this project will be defined as a contributor. Thank you kindly for supporting and if any error occurs, please fix it by yourself. Peace✌️\n\n## C-Slash Information\n- Version: 0.1 (Beta)\n- Type: Interpreted Programming Lanaguage\n- Developer: Codejapoe\n- Started on: 25/09/2023\n## Authors\n\n- [@codejapoe](https://www.github.com/codejapoe)\n\n\n## 🔗 Links\n[![portfolio](https://img.shields.io/badge/my_portfolio-000?style=for-the-badge\u0026logo=ko-fi\u0026logoColor=white)](https://codejapoe.xyz/)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcodejapoe%2Fc-slash","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcodejapoe%2Fc-slash","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcodejapoe%2Fc-slash/lists"}