{"id":16412655,"url":"https://github.com/tsarchghs/mt","last_synced_at":"2025-03-23T06:31:11.117Z","repository":{"id":111185584,"uuid":"161790157","full_name":"tsarchghs/MT","owner":"tsarchghs","description":"MT is a high level programming language.","archived":false,"fork":false,"pushed_at":"2019-01-21T23:47:45.000Z","size":564,"stargazers_count":10,"open_issues_count":8,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-18T18:21:36.971Z","etag":null,"topics":["c","compiler","programming-language"],"latest_commit_sha":null,"homepage":"","language":"C","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/tsarchghs.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":"2018-12-14T13:44:44.000Z","updated_at":"2023-02-27T03:48:55.000Z","dependencies_parsed_at":null,"dependency_job_id":"079cd7bc-b3f0-40b6-9374-7dba263b8047","html_url":"https://github.com/tsarchghs/MT","commit_stats":null,"previous_names":["tsarchghs/mt"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tsarchghs%2FMT","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tsarchghs%2FMT/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tsarchghs%2FMT/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tsarchghs%2FMT/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/tsarchghs","download_url":"https://codeload.github.com/tsarchghs/MT/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245066496,"owners_count":20555402,"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":["c","compiler","programming-language"],"created_at":"2024-10-11T06:49:29.168Z","updated_at":"2025-03-23T06:31:10.659Z","avatar_url":"https://github.com/tsarchghs.png","language":"C","funding_links":[],"categories":[],"sub_categories":[],"readme":"# MT\nThe compiler skips the AST phase and produces the output based on only the tokens given.\nCurrently it's in alpha stage.\n\nUsage: ```./compiler \u003cfile\u003e``` \u003cbr\u003e\nFor the compiler to work you must have C's \u003ca href=\"https://gcc.gnu.org/install/\"\u003eGCC compiler\u003c/a\u003e.\u003cbr\u003e\nExamples:\nPrint 1 to 10\n```javascript\nvar b = 1;\nwhile b \u003c 11:\n        print(b);\n        b += 1;\nend\n```\noutput:\n```\n1\n2\n3\n4\n5\n6\n7\n8\n9\n10\n```\n```javascript\nvar child1 = \"John\";\nvar child2 = \"Johnson\"; // creative.. I know :)\nvar child1_age = 16;\nvar child2_age = 16;\n\nif child1_age \u003e child2_age:\n\tprint(child1_age);\nend\nelif child1_age == child2_age:\n\tprint(\"They are the same age\");\nend\nelse:\n\tprint(child2_age);\nend\n```\nOutput: ``` They are the same age ```\u003cbr\u003e\nDynamic typing:\n```javascript\nvar b = \"DSASDA\";\nprint(b);\nb = 31.321;\nprint(b);\nb = 52;\nprint(b);\n```\nOutput:\n```\nDSASDA\n31.321\n52\n```\nFunctions: (alpha/buggy)\n```javascript\nfunction squareOfTwo():\n\tprint(4);\nend\nsquareOfTwo();\n```\n\u003cul\u003e\nWhy is gcc required for the compiler to work?\n\t\u003cli\u003eBecause MT's compiler (ab)uses GCC's C extension that allows function definitions inside of main function .\u003c/li\u003e\n\u003c/ul\u003e\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftsarchghs%2Fmt","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftsarchghs%2Fmt","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftsarchghs%2Fmt/lists"}