{"id":15398601,"url":"https://github.com/hyouteki/kryoss","last_synced_at":"2025-03-28T00:29:38.573Z","repository":{"id":85165530,"uuid":"583855671","full_name":"hyouteki/Kryoss","owner":"hyouteki","description":"A programming language inspired from assembly, \u0026 made using python","archived":false,"fork":false,"pushed_at":"2023-05-03T17:49:06.000Z","size":85,"stargazers_count":2,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-13T06:01:43.276Z","etag":null,"topics":["assembly-language","programming-language","python"],"latest_commit_sha":null,"homepage":"","language":"Python","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/hyouteki.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":"2022-12-31T07:13:21.000Z","updated_at":"2023-05-05T15:34:50.000Z","dependencies_parsed_at":null,"dependency_job_id":"22883c44-b958-4251-8da8-c0b91111a9a2","html_url":"https://github.com/hyouteki/Kryoss","commit_stats":{"total_commits":45,"total_committers":2,"mean_commits":22.5,"dds":0.0888888888888889,"last_synced_commit":"eb3634f7a52fa01c49f088377e270566608158fc"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hyouteki%2FKryoss","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hyouteki%2FKryoss/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hyouteki%2FKryoss/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hyouteki%2FKryoss/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/hyouteki","download_url":"https://codeload.github.com/hyouteki/Kryoss/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245948683,"owners_count":20698864,"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":["assembly-language","programming-language","python"],"created_at":"2024-10-01T15:44:48.544Z","updated_at":"2025-03-28T00:29:38.547Z","avatar_url":"https://github.com/hyouteki.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Kryoss\n\n## Contents\n- [Overview](#overview)\n- [Code examples](#code-examples)\n- [Config commands](#config-commands)\n- [Flags](#flags)\n- [Execution command](#execution-command)\n- [Must know](#must-know)\n\n# Overview\n- __Kryoss__ is a case sensitive language.\n- Made using __Python__ and inspired by __Assembly language__.\n- Some sample programs are already there.\n\n# Code examples\n\ndefining and initializing variables at same time\u003cbr\u003e \nsyntax ~ `let \u003cvariable\u003e \u003cdatatype\u003e = \u003cvalue\u003e`\n```\nlet string1 string = abc\nlet num1 int = 0\nlet num2 int = 1\nlet num3 int = 2\nlet char1 char = a\nlet float1 float = 1.1\nlet float2 float = 0.54\nlet float3 float = 7.8\nlet boolean1 boolean = false\nlet nothing1 nothing = null\n```\n\u003e Caution: Using variables to intialize different variables is prohibited and may lead to `TypeMisMatchException`\u003cbr\u003e\n\u003e Example: `let num1 int = one`\n\ndefining variables\u003cbr\u003e\nsyntax ~ `let \u003cvariable\u003e \u003cdatatype\u003e`\n```\nlet string2 string\nlet num4 int\nlet char2 char\nlet float4 float\nlet boolean2 boolean\nlet nothing2 nothing\n```\n\ndeleting variables\u003cbr\u003e\nsyntax ~ `del \u003cvariable\u003e`\n```\ndel string2\n```\n\narithmatic operations on variables of int and float type\u003cbr\u003e\nsyntax ~ `\u003copcode\u003e \u003cvariable\u003e \u003cvariable\u003e \u003cvariable\u003e`\n```\nadd num1 num2 one\nsub num1 num1 num2\nmul float1 float2 float3\ndiv float2 float2 float3\n```\n\ndisplaying variable values\u003cbr\u003e\nsyntax ~ `say \u003cvariable\u003e`\n```\nsay string1\n```\n\ndisplaying messages\u003cbr\u003e\nsyntax ~ `say \u003cmessage\u003e`\n```\nsay hello fellas\n```\n\ndisplaying messages with modifiers\u003cbr\u003e\nsyntax ~ `say \u003cmessage\u003e \u003cmodifier\u003e`\u003cbr\u003e\n$n: line-break-character\u003cbr\u003e\n$s: space-character\n```\nsay hello fellas $n\nsay hello fellas $s\n```\n\ntaking user input and storing in variables\u003cbr\u003e\nsyntax ~ `ask \u003cvariable\u003e`\n```\nask string1\n```\n\ncommenting\u003cbr\u003e\nsyntax ~ `; type here anything`\n```\n; hello fellas\n```\n\nmarking a point in code\u003cbr\u003e\nsyntax ~ `mark \u003cmark\u003e`\n```\nmark hello\n```\n\nfor going to a certain mark\u003cbr\u003e\nsyntax ~ `goto \u003cmark\u003e`\n```\ngoto hello\n```\n\nfor comparing the variables and setting off the flags\u003cbr\u003e\nsyntax ~ `com \u003cvariable\u003e \u003cvariable\u003e`\n```\ncom num1 num2\n```\n\nfor setting flags\u003cbr\u003e\nsyntax ~ `set \u003cflag\u003e`\n```\nset false\nset true\nset boolean1\n```\n\nfor copying variable values\u003cbr\u003e\nsyntax ~ `cpy \u003cvariable\u003e \u003cvariable\u003e`\n```\ncpy num1 num2\n```\n\nfor displaying various things\u003cbr\u003e\nsyntax ~ `show \u003cthing\u003e`\n```\nshow vars\nshow flags\nshow stack\n```\n\nfor doing nothing\u003cbr\u003e\nsyntax ~ `pass`\n```\npass\n```\n\nif statement\u003cbr\u003e\nsyntax ~ `if \u003cflag\u003e ? \u003ccommand\u003e`\n```\nif less ? goto hello\nif more ? say greater\nif same ? ask string1\nif flag ? pass\n```\n\nfor pushing into stack\u003cbr\u003e\nsyntax ~ `push \u003cvariable\u003e`\n```\npush num1\n```\nfor poping from stack\u003cbr\u003e\nsyntax ~ `pop \u003cvariable\u003e`\n```\npop num1\n```\nfor exiting in between of execution\u003cbr\u003e\nsyntax ~ `exit`\n```\nexit\n```\n# Config commands\nfor configuring limits\u003cbr\u003e\nsyntax ~ `config \u003climit\u003e \u003cvalue\u003e`\n```\nconfig stackOverflowLimit 100\nconfig infiniteRecursionLimit 1000\n```\n\n# Flags\n\n__Internally flags are stored in an array in this order__\u003cbr\u003e\n`[less, more, same, error_code, command_number, coverage]`\n\n- __For less, more \u0026 same__\n  - -1: no-value\n  - 0: false\n  - 1: true\n\n- __For Flags and error-codes__\n  - -1: no-value\n  - 0: false\n  - 1: true\n  - 7: OtherError\n  - 8: StackOverflowException\n  - 9: InfinteRecurrsionException\n\n- __Command number__\u003cbr\u003e\n  contains the number of currently executing command\u003cbr\u003e\n\n- __Coverage__\u003cbr\u003e\n  contains flag indicating whether to generate a coverage file or not\u003cbr\u003e\n  - 0: false\n  - 1: true\n\n# Execution command\n\n## Step1\nDownloads all the python files from latest version to your working directory\n\n## Step2\nWrite your Kryoss program with extension .kry\n\n## Step3\nRun your code with either commands\n```\npython3 kryoss_compiler.py \u003cfile-name.kry\u003e\n```\nfor executing with coverage\n```\npython3 kryoss_compiler.py \u003cfile-name.kry\u003e coverage\n```\n\n# Must know\n\n- Some basic variables like `zero`, `one`, `true`, and `false` are already there. So, no need to waste time on making one yourself.\n- Not understanding what's happening in your code, make sure to run it with coverage to visualize.\n- You can change `infiniteRecursionLimit`, `stackOverflowLimit` \u0026 other limits permanently from __kryoss_config.KryossConfig__ class\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhyouteki%2Fkryoss","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhyouteki%2Fkryoss","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhyouteki%2Fkryoss/lists"}