• Visitors can check out the Forum FAQ by clicking this link. You have to register before you can post: click the REGISTER link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below. View our Forum Privacy Policy.
  • Want to receive the latest contracting news and advice straight to your inbox? Sign up to the ContractorUK newsletter here. Every sign up will also be entered into a draw to WIN £100 Amazon vouchers!

TrumpScript

Collapse
X
  •  
  • Filter
  • Time
  • Show
Clear All
new posts

    TrumpScript

    https://github.com/samshadwell/TrumpScript

    TrumpScript is language based upon the illustrious Donald Trump. As the undeniably best presidential candidate in the 2016 language, we found that the current field of programming languages does not include any that Trump's glorious golden combover would approve of.

    TrumpScript is our solution to this. It's the programming language Trump would approve of. Just like he is making America great again, we hope our efforts will make programming great again.
    Any of the respected code monkeys on the site willing to give it a go?
    Originally posted by Stevie Wonder Boy
    I can't see any way to do it can you please advise?

    I want my account deleted and all of my information removed, I want to invoke my right to be forgotten.

    #2
    Originally posted by SimonMac View Post
    https://github.com/samshadwell/TrumpScript



    Any of the respected code monkeys on the site willing to give it a go?
    RULES:
    *No import statements (or requires a protective tariff)
    Booleans: true -> fact, false -> lie
    *Not portable
    Not compatible with PC
    Variable names are English only, and either short or popular words only
    Don't run if file contains "Hillary", "Muslim", "Mexico", etc...
    Error messages are all Trump quotes
    No floating point numbers, America doesn't do things halfway
    $4B always converted to $10B
    "Yell" or "Exclaim" are the prints to std out
    America = Great is the equivalent of exit(0)
    Strings that are yelled, or all strings can only be uppercase
    Numbers have to be greater than $1mill
    No build-in random generation
    "Build a fence" should do something ???
    For loop could be "Get 10 Mexicans to build a wall"
    Start closure with ':', end it with '!'
    Use 'x' as multiplication?
    Division always rounds up
    Periods are our 'newline' characters
    Assignment is done via "x is y" and "Make x <- y"
    Equality check: put "?" at end of word
    "Guarantee" defines a function
    "Do" calls a function
    Null is "Jeb"?

    DEMO:
    FizzBuzz = Fiorina Bush

    KEYWORD MAPPING:
    None -> Jeb
    False -> lies, nonsense
    True -> truth, fact
    and -> AND
    assert -> absolutely
    break -> capiche
    def -> guarantee
    if, elif, else -> if, else if, else
    is -> is
    not -> not
    or -> or
    pass -> ???
    return -> ???
    while -> as long as
    print -> tell, say

    < -> less, fewer, smaller
    > -> more, greater, larger

    Comment

    Working...
    X