{"id":34045099,"url":"https://github.com/yudhastyawan/yulang","last_synced_at":"2026-04-07T11:31:37.259Z","repository":{"id":62590851,"uuid":"420312463","full_name":"yudhastyawan/yulang","owner":"yudhastyawan","description":"A simple programming language using Bison and Flex in C++.","archived":false,"fork":false,"pushed_at":"2021-10-27T09:36:20.000Z","size":81,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-12-15T16:13:13.808Z","etag":null,"topics":["bison","cpp","flex","interpreted-programming-language","interpreter","programming-language","programming-languages"],"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/yudhastyawan.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2021-10-23T04:24:22.000Z","updated_at":"2021-10-27T09:36:23.000Z","dependencies_parsed_at":"2022-11-04T08:18:14.276Z","dependency_job_id":null,"html_url":"https://github.com/yudhastyawan/yulang","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/yudhastyawan/yulang","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yudhastyawan%2Fyulang","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yudhastyawan%2Fyulang/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yudhastyawan%2Fyulang/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yudhastyawan%2Fyulang/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/yudhastyawan","download_url":"https://codeload.github.com/yudhastyawan/yulang/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yudhastyawan%2Fyulang/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31511559,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-07T03:10:19.677Z","status":"ssl_error","status_checked_at":"2026-04-07T03:10:13.982Z","response_time":105,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["bison","cpp","flex","interpreted-programming-language","interpreter","programming-language","programming-languages"],"created_at":"2025-12-13T23:04:01.498Z","updated_at":"2026-04-07T11:31:37.254Z","avatar_url":"https://github.com/yudhastyawan.png","language":"C++","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Yu Language - yulang\n[![PyPI version](https://badge.fury.io/py/yulang.svg)](https://badge.fury.io/py/yulang)\n[![GitHub issues](https://img.shields.io/github/issues/yudhastyawan/yulang)](https://github.com/yudhastyawan/yulang/issues)\n[![GitHub forks](https://img.shields.io/github/forks/yudhastyawan/yulang)](https://github.com/yudhastyawan/yulang/network)\n[![GitHub stars](https://img.shields.io/github/stars/yudhastyawan/yulang)](https://github.com/yudhastyawan/yulang/stargazers)\n[![GitHub license](https://img.shields.io/github/license/yudhastyawan/yulang)](https://github.com/yudhastyawan/yulang)\n\nA toy project for creating a simple programming language using Bison and Flex in C++.\n\n## interface\n```bash\n$ ./yulang\nYu Language 0.0.1 (unstable, Oct 23 2021, 21:31:19)\nuse:    yulang -c               = interactive console\n        yulang \u003cfilename\u003e       = running the script file\n        yulang -v               = version\n        yulang -h               = this menu\n        (...) -d [end line]     = developer/debug monitor\n```\n\n## interactive console\n```bash\n$ ./yulang -c\nYu Language 0.0.1 (unstable, Oct 23 2021, 21:31:19)\ninteractive:\ny\u003e var a = 3;\ny\u003e print(a);\nprint: 3\ny\u003e square a: {return a ^ 2;}\ny\u003e print(square(a : 10));\nprint: 100\ny\u003e \n```\n\n## examples\n### arithmetic\n\nsource codes:\n```bash\nprint(10 + 30);\nprint(10 - 30);\nprint(10. / 30.);\nprint(10 * 30);\nprint(30 % 9);\nprint((5. + 5.) / 3.);\n```\n\noutput:\n```bash\n$ ./yulang tests/stable/arithmetics.yu \nprint: 40\nprint: -20\nprint: 0.333333\nprint: 300\nprint: 3\nprint: 3.33333\n```\n\n### string\n\nsource codes:\n```bash\nvar a = \"hello world\";\nprint(a);\n```\n\noutput:\n```bash\n$ ./yulang tests/stable/strings.yu  \nprint: hello world\n```\n\n### functions\n\nsource codes: (`//` is used for comments)\n```bash\n// create a square function\nsquare p, l:\n{\n    var L = p * l;\n    return L;\n}\n\n// using the square function in a volume function\nvolume t:\n{\n    var V = square(p : 5, l : 6) * t;\n    return V;\n}\n\n// assigning volume return in myVol variable\nvar myVol = volume(4);\nprint(myVol);\n```\n\noutput:\n```bash\n$ ./yulang tests/stable/functions.yu  \nprint: 120\n```\n\n### variables\n\nsource codes: (`var` is used for generating variables)\n```bash\n// defining variables\nvar a, b, c, d;\na = 10; // integer\nb = .5; // float\nc = 3.; // float\nd = 3.14; // float\n\nprint(a);\nprint(b);\nprint(c);\nprint(d);\n```\n\noutput:\n```bash\n$ ./yulang tests/stable/variables.yu \nprint: 10\nprint: 0.5\nprint: 3\nprint: 3.14\n```\n\n### import files\n\nsource codes in `includes.yu`\n```bash\nmultiply a, b:\n{\n    return a * b;\n}\n```\n\nsource codes in `multi_files.yu`\n```bash\n// relative to current directory of terminal (or shell)\n// you can import multiple relative paths and they do not create errors\n\nimport: \"tests/stable/multi_files/includes.yu\"\nimport: \"stable/multi_files/includes.yu\"\nimport: \"multi_files/includes.yu\"\n\nvar c = multiply(a : 10, b : 20);\nprint(c);\n```\n\noutput:\n```bash\n$ ./yulang tests/stable/multi_files.yu\nprint: 200\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyudhastyawan%2Fyulang","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fyudhastyawan%2Fyulang","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyudhastyawan%2Fyulang/lists"}