{"id":17644846,"url":"https://github.com/y1yang0/nyx","last_synced_at":"2025-05-07T03:44:37.934Z","repository":{"id":138060883,"uuid":"161020833","full_name":"y1yang0/nyx","owner":"y1yang0","description":"[nyx] dynamically typed scripting language","archived":false,"fork":false,"pushed_at":"2023-01-16T13:52:06.000Z","size":324,"stargazers_count":27,"open_issues_count":0,"forks_count":10,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-05-07T03:44:23.854Z","etag":null,"topics":["compiler","interpreter","language","programming-language","scripting-language"],"latest_commit_sha":null,"homepage":"","language":"C++","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/y1yang0.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":"2018-12-09T08:43:06.000Z","updated_at":"2025-04-15T17:46:17.000Z","dependencies_parsed_at":null,"dependency_job_id":"92db2cbc-31fa-46b6-b61c-9b4b93b4aa97","html_url":"https://github.com/y1yang0/nyx","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/y1yang0%2Fnyx","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/y1yang0%2Fnyx/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/y1yang0%2Fnyx/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/y1yang0%2Fnyx/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/y1yang0","download_url":"https://codeload.github.com/y1yang0/nyx/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":252810272,"owners_count":21807759,"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":["compiler","interpreter","language","programming-language","scripting-language"],"created_at":"2024-10-23T10:40:27.870Z","updated_at":"2025-05-07T03:44:37.917Z","avatar_url":"https://github.com/y1yang0.png","language":"C++","readme":"# NYX Language\n**nyx** is yet another a dynamically typed scripting language with flexible syntax and strict type system.\nIts syntax resembles Python,Java and C family languages. If you've already familiar with any other popular languages,\nyou can seamlessly write code after skimming its language reference manual.\nIn addition, nyx attempts to detect sorts of erroneous program forms at compile time that benefited from its underlying\nstrict type system, this could tremendously save your time for debugging type relevant bugs.\n\n# Build\n```bash\n$ mkdir build \u0026\u0026 cd build\n$ cmake ..\n$ make\n$ nyx \u003cyour_source_file.nyx\u003e\n```\nAll tests passed on *Windows*\n\n# Code Examples\n+ [nyx_test/example/9x9table.nyx](nyx_test/example/9x9table.nyx)\n```\n1x1=1\n1x2=2 2x2=4\n1x3=3 2x3=6 3x3=9\n1x4=4 2x4=8 3x4=12 4x4=16\n1x5=5 2x5=10 3x5=15 4x5=20 5x5=25\n1x6=6 2x6=12 3x6=18 4x6=24 5x6=30 6x6=36\n1x7=7 2x7=14 3x7=21 4x7=28 5x7=35 6x7=42 7x7=49\n1x8=8 2x8=16 3x8=24 4x8=32 5x8=40 6x8=48 7x8=56 8x8=64\n1x9=9 2x9=18 3x9=27 4x9=36 5x9=45 6x9=54 7x9=63 8x9=72 9x9=81\n```\n+ [nyx_test/example/yang_hui_san_jiao.nyx](nyx_test/example/yang_hui_san_jiao.nyx)\n```\nn = 1      [1]\nn = 2      [1,1]\nn = 3      [1,2,1]\nn = 4      [1,3,3,1]\nn = 5      [1,4,6,4,1]\nn = 6      [1,5,10,10,5,1]\nn = 7      [1,6,15,20,15,6,1]\nn = 8      [1,7,21,35,35,21,7,1]\nn = 9      [1,8,28,56,70,56,28,8,1]\n```\n\n+ [nyx_test/example/quick_sort.nyx](nyx_test/example/quick_sort.nyx)\n```\n[4,-5,9,15,-6,-2,0] =\u003e [-6,-5,-2,0,4,9,15]\n```\n+ [nyx_test/example/love.nyx](nyx_test/example/love.nyx)\n```\n                *********           *********\n            *****************   *****************\n          ****************************************\n         *******************************************\n        *********************************************\n        *********************************************\n        *********************************************\n        *********************************************\n        *********************************************\n        *********************************************\n         *******************************************\n          *****************************************\n          ****************************************\n            *************************************\n             ***********************************\n              *********************************\n                *****************************\n                  *************************\n                    *********************\n                       ***************\n                          *********\n                             ***\n```\n+ [nyx_test/example/ast.nyx](nyx_test/example/ast.nyx)\n```\n-Func[fibonacci_rec]\n  -IfStmt\n    -BinaryExpr[23]\n      -NameExpr[num]\n      -IntExpr[2]\n    -ReturnStmt\n      -IntExpr[1]\n    -ReturnStmt\n      -BinaryExpr[13]\n        -FunCallExpr[fibonacci_rec]\n          -BinaryExpr[14]\n            -NameExpr[num]\n            -IntExpr[2]\n        -FunCallExpr[fibonacci_rec]\n          -BinaryExpr[14]\n            -NameExpr[num]\n            -IntExpr[1]\n```\n## Language Reference\nSee [reference.md](./docs/reference.md) for detailed language reference，\n[`nyx_test/*`](./nyx_test/) contains various nyx code snippets, they are probably the best way to learn how to program in **nyx**.\n\n# License\n**nyx** is licensed under the [MIT LICENSE](LICENSE)。\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fy1yang0%2Fnyx","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fy1yang0%2Fnyx","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fy1yang0%2Fnyx/lists"}