{"id":23431915,"url":"https://github.com/vssekorin/bilogic","last_synced_at":"2025-04-09T15:26:57.888Z","repository":{"id":91561755,"uuid":"97641955","full_name":"vssekorin/BiLogic","owner":"vssekorin","description":"BiLogic programming language","archived":false,"fork":false,"pushed_at":"2017-09-30T18:02:27.000Z","size":129,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-02-15T09:20:37.803Z","etag":null,"topics":["bilogic","java","jvm-bytecode","jvm-languages","language","programming-language"],"latest_commit_sha":null,"homepage":"","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/vssekorin.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":"2017-07-18T20:41:36.000Z","updated_at":"2024-01-13T23:57:00.000Z","dependencies_parsed_at":null,"dependency_job_id":"913720a9-2fbe-4729-b826-777b37d4cd0d","html_url":"https://github.com/vssekorin/BiLogic","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vssekorin%2FBiLogic","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vssekorin%2FBiLogic/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vssekorin%2FBiLogic/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vssekorin%2FBiLogic/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/vssekorin","download_url":"https://codeload.github.com/vssekorin/BiLogic/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248057133,"owners_count":21040508,"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":["bilogic","java","jvm-bytecode","jvm-languages","language","programming-language"],"created_at":"2024-12-23T10:51:27.621Z","updated_at":"2025-04-09T15:26:57.868Z","avatar_url":"https://github.com/vssekorin.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"**BiLogic** (BivalentLogic) is programming language (esoteric) for JVM. All variables are boolean.\n\n## Methods\n\n```\ndef name\n    body\nend def\n```\n\n```\n\u003cVarList\u003e invoke name \u003cArguments\u003e\n\nVarList := varname, \u003cVarList\u003e | _, \u003cVarList\u003e | varname | _\nArguments := true \u003cArguments\u003e | false \u003cArguments\u003e |\n    varname \u003cArguments\u003e | true | false | varname \n```\n\nMain method:\n```\ndef main\n    ...\nend def\n```\n\nExample\n```\ndef main\n    res1, res2 invoke method1\n    res3, _, res4, res5 invoke method2 false res1\nend def\n\ndef method1\n    in var1, var2\n    ret var2\n    var3 is var1 -\u003e var2\n    ret var3\nend def\n\ndef method2 arg1 arg2\n    ret arg1 and arg2\n    ret arg1 or arg2\n    ret arg1 xor arg2\n    ret arg1 -\u003e arg2\nend def\n```\n\n## Assignment\n\nOperations:\n- `not`\n- `or`\n- `and`\n- `xor`\n- `-\u003e`\n```\nAssignment := \u003cVarList\u003e is \u003cExpression\u003e\nExpression := true | false | varname | not \u003cExpression\u003e\n        \u003cExpression\u003e \u003cBOperation\u003e \u003cExpression\u003e\nBOperation := and | or | xor | -\u003e\n```\nExamples:\n```\nvar is true\n```\n```\nvar is false\n```\n```\nresult is var1 and var2 or not var3\n```\n```\nvar1, var2 is expression\n```\n\n## Input\n\n```\nInput := in \u003cVarList\u003e\n```\nExamples:\n```\nin var\n```\n```\nin var1, var2, var3\n```\n\n## Output\n\nStart with `out`. Examples:\n```\nout {var}\n```\n```\nout text\n```\n```\nout Value = {var}\n```\n\nAnd you can use expressions inside braces:\n```\nout Result: {var1 or not var2 -\u003e var3}. I hope.\n```\n\n## If\n\n```\nIfStatement :=\nif \u003cExpression\u003e then\n    \u003cCode\u003e\nelse\n    \u003cCode\u003e\nend if\n```\n\nExample:\n```\nif var1 and not var2 then\n    var3, var4 is expression\n    out Hmmm {var3}\nelse\n    out {var3}\nend if\n```\n\n## While\n\n```\nWhile :=\nwhile \u003cExpression\u003e do\n    \u003cCode\u003e\nend while\n```\n\nExample:\n```\nwhile var1 or var2\n    out {var3}\n    var4 is var5 or var6\n    var2 is var6 -\u003e var4\nend while\n```\n\n## Exception\n\n```\npanic\n```\n```\npanic Message\n```\n\n## Comment\n\n```\n-- Text\n```\n\n## License (MIT)\n\nMIT License\n\nCopyright (c) 2017 Vseslav Sekorin (vssekorin.com)\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvssekorin%2Fbilogic","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fvssekorin%2Fbilogic","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvssekorin%2Fbilogic/lists"}