{"id":18658089,"url":"https://github.com/jt2m0l3y/mypl","last_synced_at":"2026-05-01T00:31:52.141Z","repository":{"id":170908692,"uuid":"647178986","full_name":"JT2M0L3Y/MyPL","owner":"JT2M0L3Y","description":"Programming language designed for the purpose of studying compilation and runtime processes. As a side note, OCaml was also introduced to contrast with imperative languages.","archived":false,"fork":false,"pushed_at":"2024-02-16T18:44:15.000Z","size":28615,"stargazers_count":1,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2024-12-27T15:13:21.944Z","etag":null,"topics":["ast","code-generation","compiler-design","cpp","grammars","jit","lambda-calculus","lexical-analysis","ocaml","parsing","type-checking","vm"],"latest_commit_sha":null,"homepage":"","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/JT2M0L3Y.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,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-05-30T08:21:02.000Z","updated_at":"2024-12-03T11:37:59.000Z","dependencies_parsed_at":"2023-12-28T03:09:20.576Z","dependency_job_id":"2a048f29-c89c-4a0f-bc4d-09994452904d","html_url":"https://github.com/JT2M0L3Y/MyPL","commit_stats":null,"previous_names":["jt2m0l3y/mypl"],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JT2M0L3Y%2FMyPL","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JT2M0L3Y%2FMyPL/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JT2M0L3Y%2FMyPL/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JT2M0L3Y%2FMyPL/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/JT2M0L3Y","download_url":"https://codeload.github.com/JT2M0L3Y/MyPL/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":239475961,"owners_count":19645041,"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":["ast","code-generation","compiler-design","cpp","grammars","jit","lambda-calculus","lexical-analysis","ocaml","parsing","type-checking","vm"],"created_at":"2024-11-07T07:31:30.157Z","updated_at":"2025-11-05T22:30:26.729Z","avatar_url":"https://github.com/JT2M0L3Y.png","language":"C++","funding_links":[],"categories":[],"sub_categories":[],"readme":"# README\n\n\u003ca name=\"title\"\u003e\u003c/a\u003e\n## MyPL - Programming Language Interpreter\n\n\u003ca name=\"desc\"\u003e\u003c/a\u003e\n### Description\nThis programming language is a work in progress. I finished a basic set of operations, constructs, and methods that can be performed as per the requirements of a PL course. Beyond this, I have started extending this language by adding an additional construct: dictionaries (Python) or undordered maps (C++). \n\n\u003ca name=\"tbl\"\u003e\u003c/a\u003e\n### Table of Contents\n- [Install](#install)\n- [Usage](#usage)\n- [Credits](#cred)\n\n\u003ca name=\"install\"\u003e\u003c/a\u003e\n### Installation\n\nTo \"install\" this language one must run a set of commands:\n- CMake to build tools that will process dependencies\n```\ncmake .\n```\n- Make to process dependencies and build the language\n```\nmake\n```\n\n\u003ca name=\"usage\"\u003e\u003c/a\u003e\n### Usage\n\nTo run:\n```\n./mypl [flag] [file]\n```\n\nAvailable flags:  \n`--lex`: lexical analysis  \n`--parse`: parsing, AST generation  \n`--print`: pretty printer  \n`--check`: semantic checking  \n`--ir`: machine instruction generation  \n`--help`: usage message  \n\nFeatures:\n- lexical analysis\n- simple parsing\n- AST generation\n- pretty printer\n- semantic checking\n- machine instruction generation with VM\n- running programs written in 'MyPL'\n\nLanguage Benefits:\n- types\n  - user-defined ```struct [name] { [fields]* }```\n  - 1D arrays ```array [type] [id] = new [type][ [size] ]```\n  - primitive ```[type] [id] = [val]```\n- methods\n  - length (string, arrays) ```length([id])```\n  - get/set fields ```[id][val]```\n  - get/set array index ```[id][val]```\n  - get char in string ```get(val)```\n  - terminal I/O (print, input) ```print([type]), input()```\n- extended use\n  - dictionary (unordered map) type ```dict [type1] [type2] [id] = new dict{type1, type2}```\n  - methods: keys, values ```keys([id]), values([id])```\n\nAn example of this language's use has been published to \n[YouTube](https://www.youtube.com/watch?v=ngUi5oREe8E).\n\n\u003ca name=\"cred\"\u003e\u003c/a\u003e\n### Credits\n\nContributors:\n- JT2M0L3Y\n- Dr. Bowers\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjt2m0l3y%2Fmypl","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjt2m0l3y%2Fmypl","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjt2m0l3y%2Fmypl/lists"}