{"id":16110064,"url":"https://github.com/calbabreaker/simple-language-maybe-intepreted","last_synced_at":"2025-04-06T05:25:41.634Z","repository":{"id":165038169,"uuid":"534283381","full_name":"Calbabreaker/simple-language-maybe-intepreted","owner":"Calbabreaker","description":"A simple language maybe","archived":false,"fork":false,"pushed_at":"2022-09-17T05:14:27.000Z","size":26,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-12T11:14:23.130Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Rust","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/Calbabreaker.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-09-08T15:48:22.000Z","updated_at":"2024-04-24T11:16:32.000Z","dependencies_parsed_at":null,"dependency_job_id":"ebeda7ba-b37f-4afa-802d-900b266ee750","html_url":"https://github.com/Calbabreaker/simple-language-maybe-intepreted","commit_stats":null,"previous_names":["calbabreaker/simple-language-maybe-intepreted"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Calbabreaker%2Fsimple-language-maybe-intepreted","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Calbabreaker%2Fsimple-language-maybe-intepreted/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Calbabreaker%2Fsimple-language-maybe-intepreted/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Calbabreaker%2Fsimple-language-maybe-intepreted/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Calbabreaker","download_url":"https://codeload.github.com/Calbabreaker/simple-language-maybe-intepreted/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247439906,"owners_count":20939185,"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":"2024-10-09T19:35:23.119Z","updated_at":"2025-04-06T05:25:41.605Z","avatar_url":"https://github.com/Calbabreaker.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Simple Language Maybe\n\n## Running\n\nRun like this where the first argument would be the file to a slm script:\n\n```sh\ncargo run -r hello.slm\n```\n\n## Specification\n\n### Syntax\n\nComments can be declared with `#` where `#` will comment out all the text until the end of the line. Code between `#*` and `*#` will be comments as well:\n\n```slm\n# This is comment\n#*\n    This is another comment\n    This is another comment\n*#\n```\n\nVariables are created using `=` or `:=` for constants:\n\n```slm\nvariable = \"hello\"\ngravity := 9.1\n```\n\nThe seperator for each statement is a linebreak. Use `~` if multiple statement are need on one line with each side of the `~` needing to be a statement:\n\n```slm\nvar1 = \"yes\" ~ var2 = \"no\"\n```\n\nFunctions are called with arguments being seperated by spaces or a seperator:\n\n```slm\nprint \"Hello World\" variable variable2\n# Or:\nprint\"Hello World\"variable variable2\n```\n\n`()` can be used to execute code where the value of the last statement will be returned (or returned with `return`). This can be multiline:\n\n```slm\nprint (read_file \"hello\")\nprint (\n    user = \"Hello\"\n    get_password(user) # or return get_password(user)\n)\n# Required if doing math like this:\nprint (1 + 2)\n```\n\nDefine functions using `func` and set it as a variable:\n\n```slm\nsay_hello = func arg1 agr2 (\n\n)\n```\n\n### Style\n\nFiles should end in `.slm`.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcalbabreaker%2Fsimple-language-maybe-intepreted","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcalbabreaker%2Fsimple-language-maybe-intepreted","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcalbabreaker%2Fsimple-language-maybe-intepreted/lists"}