{"id":17549179,"url":"https://github.com/yhirose/fizzbuzzlang","last_synced_at":"2025-04-24T00:49:32.172Z","repository":{"id":138076175,"uuid":"172982467","full_name":"yhirose/fizzbuzzlang","owner":"yhirose","description":"A Programming Language just for writing Fizz Buzz program. :)","archived":false,"fork":false,"pushed_at":"2023-09-17T12:18:48.000Z","size":15,"stargazers_count":6,"open_issues_count":0,"forks_count":2,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-24T00:49:27.684Z","etag":null,"topics":["fizz-buzz","fizzbuzz","language","peg","programming-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/yhirose.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":"2019-02-27T20:07:43.000Z","updated_at":"2023-12-04T13:35:49.000Z","dependencies_parsed_at":null,"dependency_job_id":"a620282f-6306-44a5-a385-011184f01324","html_url":"https://github.com/yhirose/fizzbuzzlang","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yhirose%2Ffizzbuzzlang","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yhirose%2Ffizzbuzzlang/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yhirose%2Ffizzbuzzlang/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yhirose%2Ffizzbuzzlang/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/yhirose","download_url":"https://codeload.github.com/yhirose/fizzbuzzlang/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":250540956,"owners_count":21447426,"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":["fizz-buzz","fizzbuzz","language","peg","programming-language"],"created_at":"2024-10-21T02:50:04.030Z","updated_at":"2025-04-24T00:49:32.161Z","avatar_url":"https://github.com/yhirose.png","language":"C++","funding_links":[],"categories":[],"sub_categories":[],"readme":"FizzBuzzLang\n============\n\nA Programming Language just for writing [Fizz Buzz](https://en.wikipedia.org/wiki/Fizz_buzz) program. :)\n\n```\nfor n from 1 to 100\n  puts n % 3 == 0 ? (n % 5 == 0 ? 'FizzBuzz' : 'Fizz') : (n % 5 == 0 ? 'Buzz' : n)\n```\n\nBuild and Run demo\n------------------\n\n```bash\n\u003e make\n./fzbz fizzbuzz.fzbz\n1\n2\nFizz\n4\nBuzz\n...\n```\n\nPEG grammar\n-----------\n\n```peg\n# Syntax Rules\nEXPRESSION              \u003c- TERNARY\nTERNARY                 \u003c- CONDITION ('?' EXPRESSION ':' EXPRESSION)?\nCONDITION               \u003c- MULTIPLICATIVE (ConditionOperator MULTIPLICATIVE)?\nMULTIPLICATIVE          \u003c- CALL (MultiplicativeOperator CALL)*\nCALL                    \u003c- PRIMARY (EXPRESSION)?\nPRIMARY                 \u003c- FOR / Identifier / '(' EXPRESSION ')' / String / Number\nFOR                     \u003c- 'for' Identifier 'from' Number 'to' Number EXPRESSION\n\n# Token Rules\nConditionOperator       \u003c- '=='\nMultiplicativeOperator  \u003c- '%'\nIdentifier              \u003c- !Keyword \u003c [a-zA-Z][a-zA-Z0-9_]* \u003e\nString                  \u003c- \"'\" \u003c ([^'] .)* \u003e \"'\"\nNumber                  \u003c- \u003c [0-9]+ \u003e\n\nKeyword                 \u003c- 'for' / 'from' / 'to'\n%whitespace             \u003c- [ \\t\\r\\n]*\n```\n\nLicense\n-------\n\n[MIT](https://github.com/yhirose/fizzbuzzlang/blob/master/LICENSE)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyhirose%2Ffizzbuzzlang","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fyhirose%2Ffizzbuzzlang","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyhirose%2Ffizzbuzzlang/lists"}