{"id":21736407,"url":"https://github.com/kyza/gnal_tsur","last_synced_at":"2025-03-21T00:27:43.183Z","repository":{"id":189669485,"uuid":"681067085","full_name":"Kyza/gnal_tsur","owner":"Kyza","description":null,"archived":false,"fork":false,"pushed_at":"2023-08-21T09:09:14.000Z","size":9,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"trunk","last_synced_at":"2024-05-28T16:30:26.140Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Rust","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/Kyza.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":"2023-08-21T07:32:40.000Z","updated_at":"2023-08-21T07:32:48.000Z","dependencies_parsed_at":"2024-11-26T05:18:59.130Z","dependency_job_id":"d398d6cc-4f8a-4eee-b817-d8aa329affad","html_url":"https://github.com/Kyza/gnal_tsur","commit_stats":null,"previous_names":["kyza/gnal_tsur"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Kyza%2Fgnal_tsur","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Kyza%2Fgnal_tsur/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Kyza%2Fgnal_tsur/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Kyza%2Fgnal_tsur/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Kyza","download_url":"https://codeload.github.com/Kyza/gnal_tsur/tar.gz/refs/heads/trunk","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244715261,"owners_count":20497993,"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":[],"created_at":"2024-11-26T05:18:51.800Z","updated_at":"2025-03-21T00:27:43.157Z","avatar_url":"https://github.com/Kyza.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# gnal_tsur!\r\n\r\n.esrever ni edoc etirW\r\n\r\n## Features\r\n\r\n- [x] Reversed tokens.\r\n- [x] Reversed identifiers and literals.\r\n\r\n## Usage\r\n\r\n### `lang_rust!`\r\n\r\nThis macro reverses the order of every token in the code provided to it.\r\n\r\nEven though the character order of identifiers and literals are untouched, the characters of punctuations are considered separate and are therefore reversed as well.\r\n\r\n```rs\r\nfn fibonacci(n: u32) -\u003e u32 {\r\n\tmatch n {\r\n\t\t0 =\u003e 1,\r\n\t\t1 =\u003e 1,\r\n\t\t_ =\u003e fibonacci(n - 1) + fibonacci(n - 2),\r\n\t}\r\n}\r\n\r\nlang_rust! {\r\n\t{\r\n\t\t{\r\n\t\t\t,(2 - n)fibonacci + (1 - n)fibonacci \u003e= _\r\n\t\t\t,1 \u003e= 1\r\n\t\t\t,1 \u003e= 0\r\n\t\t} n match\r\n\t} u32 \u003e- (u32 :n)fibonacci fn\r\n}\r\n```\r\n\r\n### `gnal_tsur!`\r\n\r\nThis macro is like `lang_rust!`, but it also reverses the order of characters in identifiers and literals.\r\n\r\n```rs\r\nfn fibonacci(n: u32) -\u003e u32 {\r\n\tmatch n {\r\n\t\t0 =\u003e 1,\r\n\t\t1 =\u003e 1,\r\n\t\t_ =\u003e fibonacci(n - 1) + fibonacci(n - 2),\r\n\t}\r\n}\r\n\r\ngnal_tsur! {\r\n\t{\r\n\t\t{\r\n\t\t\t,(2 - n)iccanobif + (1 - n)iccanobif \u003e= _\r\n\t\t\t,1 \u003e= 1\r\n\t\t\t,1 \u003e= 0\r\n\t\t} n hctam\r\n\t} 23u \u003e- (23u :n)iccanobif nf\r\n}\r\n```\r\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkyza%2Fgnal_tsur","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkyza%2Fgnal_tsur","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkyza%2Fgnal_tsur/lists"}