{"id":13594566,"url":"https://github.com/samshadwell/TrumpScript","last_synced_at":"2025-04-09T07:33:01.930Z","repository":{"id":40605305,"uuid":"49760504","full_name":"samshadwell/TrumpScript","owner":"samshadwell","description":"Make Python great again","archived":true,"fork":false,"pushed_at":"2019-12-04T13:55:30.000Z","size":316,"stargazers_count":7548,"open_issues_count":5,"forks_count":396,"subscribers_count":150,"default_branch":"master","last_synced_at":"2024-09-27T03:41:24.201Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":false,"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/samshadwell.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}},"created_at":"2016-01-16T05:23:07.000Z","updated_at":"2024-09-25T12:58:54.000Z","dependencies_parsed_at":"2022-07-14T03:50:37.791Z","dependency_job_id":null,"html_url":"https://github.com/samshadwell/TrumpScript","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/samshadwell%2FTrumpScript","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/samshadwell%2FTrumpScript/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/samshadwell%2FTrumpScript/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/samshadwell%2FTrumpScript/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/samshadwell","download_url":"https://codeload.github.com/samshadwell/TrumpScript/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":223375377,"owners_count":17135359,"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-08-01T16:01:35.764Z","updated_at":"2024-11-06T16:31:33.825Z","avatar_url":"https://github.com/samshadwell.png","language":"Python","readme":"# Final Update\nIt's been a while since we made any updates to TrumpScript, and we just wanted to make it official that our development on this project has stopped and that we will no longer be accepting issues or pull requests on this repo.\n\nFrankly, this joke isn't funny anymore. Rather than spend your time beating the \"Trump is ridiculous\" meme to death, please actually do something instead and donate to:\n* [American Civil Liberties Union](https://www.aclu.org)\n* [National Resources Defense Council](https://www.nrdc.org)\n* [Planned Parenthood](https://www.plannedparenthood.org)\n\n# TrumpScript \u003cimg src=\"https://raw.github.com/samshadwell/TrumpScript/master/TrumpScript.jpg\" width=\"50px\" height=\"50px\" /\u003e\nMake Python great again\n\n## Mission\nTrumpScript is a language based upon the illustrious Donald Trump. As the undeniably best US President, we found that the current field of programming languages does not include any that Trump's glorious golden combover would approve of.\n\nTrumpScript is our solution to this. It's the programming language Trump would approve of. Just like he is going to make America great again, we hope our efforts will make programming great again.\n\n## Installation\nTo use, download the .zip and extract the contents or clone the repository by typing\n\n```bash\ngit clone https://github.com/samshadwell/TrumpScript.git\n```\n\nAdd the TrumpScript root directory to your system `PATH` using one of the two following techniques\n\n1. Temporary: Write `export PATH=$PATH:/path/to/TrumpScript/bin` to terminal.\n2. Permanent: Append `export PATH=$PATH:/path/to/TrumpScript/bin` to the end of your `~/.bashrc` file.\n\n## Usage\n* Write a TrumpScript file following the syntax we've specified (good luck).\n* Execute `TRUMP /path/to/trumpscript/file.tr`\n* Enjoy the wonderful world of TrumpScript!\n\n## Features\nOur language includes several convenient features, perfect for any aspiring Presidential candidate including:\n* No floating point numbers, only integers. America never does anything halfway.\n* All numbers must be strictly greater than 1 million. The small stuff is inconsequential to us.\n* There are no import statements allowed. All code has to be home-grown and American made.\n* Instead of `True` and `False`, we have the keywords `fact` and `lie`.\n* Only the most popular English words, Trump's favorite words, and current politician names can be used as variable names.\n* Error messages are mostly quotes directly taken from Trump himself.\n* All programs must end with `America is great`.\n* Our language will automatically correct Forbes' $4.5B to $10B.\n* In its raw form, TrumpScript is not compatible with Windows, because Trump isn't the type of guy to believe in PC.\n* TrumpScript boycotts OS X and all Apple products  until such time as Apple gives cellphone info to authorities regarding radical Islamic terrorist couple from Cal.\n* The language is completely case insensitive.\n* If the running computer is from China, TrumpScript will not compile. We don't want them stealing our American technological secrets.\n* By constructing a wall (providing the --Wall flag), TrumpScript will refuse to run on machines with Mexican locales\n* Warns you if you have any Communists masquerading as legitimate \"SSL Certificates\" from China on your system.\n* Won't run in root mode because America doesn't need your help being great. Trump is all we need.\n* Easy to type with small hands\n\nIf you find you can't get any TrumpScript to run on your computer (probably because we disallow the two most popular operating systems), you can specify the `--shut_up` flag to let the interpreter know you just want your code to run, damn it.\n\n## Grammar\nThe grammar of the language is fairly convoluted, but here's a taste of the enlightened decisions we've made.\n\nArithmetic operators:\n* `+` and `plus` do addition\n* `-` and `minus` do subtraction\n* `*` and `times` do multiplication\n* `/` and `over` do division\n* `\u003c`, `less`, `fewer`, and `smaller` all evaluate to 'less than'\n* `\u003e`, `more`, `greater`, and `larger` all evaluate to 'greater than'\n\nControl flow:\n* Use `,` and `;` to treat compound statements as a single evaluation, similar to how `()` are used in other languages\n* Use `:` and `!` to define the scope of loops and if statements, similar to how `{}` is used in Java\n* `if`, `else if`, and `else` do what you think they do\n* `not`, `and`, and `or` do what you expect\n\nThe exciting parts:\n* Strings are denoted by double quotes (`\"I love Trump\"`)\n* The `is` and `are` keywords are used both to check for equality, and for assignment. To use for assignment, say something like `Trump is great` or `Democrats are dumb`. To use to check for equality, do the same but append a `?`. For example, you may need to ask yourself `Trump is \"the best\"?` (although we all know that would evaluate to `fact` anyway)\n* Assignment can also be done via the `make` keyword. E.g. `Make America great` assigns the value of the variable `great` to `America`\n* Printing to stdout can be done via `tell` or `say`\n* While loops are denoted via `as long as`. And that's the only type of loop you need anyway\n* If a 'word' (so anything that could be a variable name) is deemed unnecessary by the compiler, it's simply thrown away. So you can make truly self documenting code, or code that appear to read very very similarly to real speeches by the big man himself. You can find some interesting examples in our `test/test_files` directory\n\nExample:\n```\nWhat are we in this country\nHillary speaks nothing but lies\nBut look at me I came to this election to make guys\nbelieve again\nbelieve in fact\nif, all of us real lies the light; : say \"VOTE TRUMP\" !\nbut I know we should be free\nelse the result will be bad: all the work of George\nWashington was for nothing\nso this election say \"Hello World\" say \"TRUMP FOR PRESIDENT\"!\nAmerica is great.\n```\n\nBut most importantly, Trump doesn't like to talk about his failures. So a lot of the time your code will fail, and it will do so silently. Just think of debugging as a fun little game.\n\n## Because We Pretend We're Good People\nIf this page entertained you, consider making a donation to your favorite charity or political campaign.\n\nI'm a fan of the [Electronic Frontier Foundation](https://www.eff.org), [donate here](https://supporters.eff.org/donate/button)\n\nThere's also [Hillary Clinton](https://www.hillaryclinton.com/contribute/donate/), and of course [Donald Trump himself. ](http://www.reactiongifs.com/r/saywha.gif)\n\n## Because We've Sold Out\nIf you're feeling extra generous, you can also buy us a beer (or two) for more brainstorming because our small loan of a million dollars wasn't enough:\n\nPaypal:\n[paypal.me/Shadwell](https://paypal.me/Shadwell)\n\nBitcoin:\n[1AKK76WNmQheCYgZEksB61Jyp1voYxN63v](bitcoin:1AKK76WNmQheCYgZEksB61Jyp1voYxN63v)\n\n## Hey, this repo seems pretty dead...\nThis project is (probably) not totally dead, and we'll get back to it eventually, but hold tight for now, since we're all busy students full-time.\n\nBut by all means, please submit a pull request! We're all just shocked this has blown up so much, and we'd love to get this language implemented \"properly!\"\n\n## Media\nHey, cool, [we got an article on Inverse written about us!](https://www.inverse.com/article/10448-coders-assimilate-donald-trump-to-a-programming-language)\n\n[Also Motherboard](http://motherboard.vice.com/read/donald-trump-in-a-programming-language)\n\n[And The Verge](http://www.theverge.com/tldr/2016/1/21/10806944/donald-trump-script-python)\n\n[And one on Gizmodo](http://gizmodo.com/theres-a-donald-trump-programming-language-1754458693)\n\n[And TheNextWeb](http://thenextweb.com/us/2016/01/22/trumpscript-is-a-programming-language-that-thinks-and-acts-like-donald/)\n\n[And Mashable](http://mashable.com/2016/01/22/donald-trump-programming-language/#9NAKAP8GPOqt)\n\n[And The Washington Post](https://www.washingtonpost.com/news/powerpost/wp/2016/01/22/decentralizing-control-of-the-internet-meet-trumpscript-a-new-programming-language-are-iphone-sales-in-decline/)\n\n[Geekwire](http://www.geekwire.com/2016/donald-trump-programming-language-seeks-to-make-programming-great-again/)\n\n[UPI](http://www.upi.com/Odd_News/2016/01/22/Group-of-coders-create-script-language-based-on-Donald-Trump/1101453495327/)\n\n[Neowin](http://www.neowin.net/news/neobytes--trumpscript-will-make-python-great-again)\n\n## History\nCreated for HackRice ([hack.rice.edu](http://hack.rice.edu/)) by:\n\n[Sam Shadwell](http://samshadwell.me), [@samshadwell](https://github.com/samshadwell)\n\nDan Korn, [@DnlRKorn](https://github.com/DnlRKorn)\n\nChris Brown, [@CryoBrown](https://github.com/CryoBrown)\n\nCannon Lewis, [@cannon10100](https://github.com/cannon10100)\n","funding_links":["https://paypal.me/Shadwell"],"categories":["Python",":poodle: Esoteric Languages","HarmonyOS","Esoteric languages","Programming Languages"],"sub_categories":["Styles","Windows Manager"],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsamshadwell%2FTrumpScript","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsamshadwell%2FTrumpScript","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsamshadwell%2FTrumpScript/lists"}