{"id":31386827,"url":"https://github.com/solarisstudio/piccodescript","last_synced_at":"2025-09-28T20:20:10.044Z","repository":{"id":295058165,"uuid":"988893050","full_name":"SolarisStudio/PiccodeScript","owner":"SolarisStudio","description":"A simple functional scripting language created in java","archived":false,"fork":false,"pushed_at":"2025-09-28T08:57:11.000Z","size":983,"stargazers_count":4,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-09-28T10:27:01.031Z","etag":null,"topics":["compiler","functional","functional-programming","interpreter","java","jvm","jvm-languages","language","script","scripting-language"],"latest_commit_sha":null,"homepage":"http://piccodescript.fly.dev/","language":"Java","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/SolarisStudio.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,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2025-05-23T08:31:36.000Z","updated_at":"2025-09-28T08:57:08.000Z","dependencies_parsed_at":"2025-05-23T13:18:59.391Z","dependency_job_id":"caa4e77c-afe4-4e02-9751-c44386969278","html_url":"https://github.com/SolarisStudio/PiccodeScript","commit_stats":null,"previous_names":["glimmr-lang/piccodescript","solarisstudio/piccodescript"],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/SolarisStudio/PiccodeScript","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SolarisStudio%2FPiccodeScript","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SolarisStudio%2FPiccodeScript/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SolarisStudio%2FPiccodeScript/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SolarisStudio%2FPiccodeScript/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/SolarisStudio","download_url":"https://codeload.github.com/SolarisStudio/PiccodeScript/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SolarisStudio%2FPiccodeScript/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":277422667,"owners_count":25815354,"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","status":"online","status_checked_at":"2025-09-28T02:00:08.834Z","response_time":79,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":["compiler","functional","functional-programming","interpreter","java","jvm","jvm-languages","language","script","scripting-language"],"created_at":"2025-09-28T20:20:07.087Z","updated_at":"2025-09-28T20:20:10.036Z","avatar_url":"https://github.com/SolarisStudio.png","language":"Java","readme":"# PiccodeScript\n\n\u003e A simple interpreted, functional programming language.\n\n\u003cdiv align=\"center\"\u003e\n\n\u003cimg src=\"./images/mascot.png\" width=\"50%\" /\u003e\n\n[![Java CI with Maven](https://github.com/Glimmr-Lang/PiccodeScript/actions/workflows/maven.yml/badge.svg)](https://github.com/Glimmr-Lang/PiccodeScript/actions/workflows/maven.yml)\n \n\u003c/div\u003e\n\n\n## Why?\n\nPiccodeScript started as a dsl for an image editor (Picasso Code) I was building, and overtime \nI fell in love with the simple syntax and I wanted to make to its own project, possibly for \nembedding in my java programs or for general scripting. \n\n## Installation\n\nYou can download binary releases from the Official website or visit the file server to find previous versions. \n\n##### Latest\n\n- [Official Release](http://piccodescript.fly.dev/)\n\n##### Previous releases\n\n- [Release Server](https://picasso-releases.fly.dev/piccodescript/)\n\n\n## Build From Source\n\n- Step 1 - Clone the repo.\n```sh\n$ git clone git@github.com:Glimmr-Lang/PiccodeScript.git\n```\n\n- Step 2 - Enter inside the dir.\n```sh\n$ cd PiccodeScript\n```\n\n- Step 3 - Run the build script.\n```sh\n$ ./all.sh\n```\n\n## Documentation\n- [Standard library reference](https://piccodescriptdocs.fly.dev/)\n\n# Example\n\n###### Hello World \n\n```js\nimport std.io\n\nmain :: () = IO::println(\"Hello, world\")\n```\n\n###### Factorial\n\n```js\nimport std.io\n\nfact :: (x=1) = \n  when x {\n    is 0 -\u003e 1\n    is 1 -\u003e 1\n    else -\u003e x * fact(x - 1)\n  }\n\nresult := fact(5)\nIO::println(result)\n```\n\n## Embedding API\n\nTo use the language in your project simply add it your `pom.xml` file as a dependency:\n\n\n```xml\n\u003crepositories\u003e\n\t\u003crepository\u003e\n\t\t\u003cid\u003ejitpack.io\u003c/id\u003e\n\t\t\u003curl\u003ehttps://jitpack.io\u003c/url\u003e\n\t\u003c/repository\u003e\n\u003c/repositories\u003e\n\n\u003cdependency\u003e\n\t\u003cgroupId\u003ecom.github.Glimmr-Lang\u003c/groupId\u003e\n\t\u003cartifactId\u003ePiccodeScript\u003c/artifactId\u003e\n\t\u003cversion\u003eTag\u003c/version\u003e\n\u003c/dependency\u003e\n```\n#### Note replace `Tag` with a release tag from the [releases](https://github.com/Glimmr-Lang/PiccodeScript/releases) page.\n\n and then add the following code to your solution:\n\n```java\nCompiler\n\t.compile(\"zero :: () = 0\")\n\t.execute(null);\n```\n\nIf you want to get a list of AST nodes do this:\n\n```java\nCompiler.prepareGlobalScope();\nList\u003cAst\u003e nodes = Compiler.parse(input);\n\n// Then you can execute them or do what you want\nfor (var expr: nodes) {\n\texpr.execute();\n}\n```\n\nTo add symbols to the current scope you can do the following: \n\n```java\nContext.top.putLocal(\"hello\", new PiccodeString(\"Hello, world\"));\n\nCompiler.compile(\"hello + 20\"); // concate hello, world and 20 \n```\n\n## Inspired by\n- [Lua](https://www.lua.org/) - The simplicity\n- [Rust](https://www.rust-lang.org/) - The flexibility\n- [SML](https://www.smlnj.org/sml.html) - Functional programming concepts\n- [Java](https://www.java.com/en/) - Threading model\n\n\n\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsolarisstudio%2Fpiccodescript","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsolarisstudio%2Fpiccodescript","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsolarisstudio%2Fpiccodescript/lists"}