The Washington programming language.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

2.9KB

#TokenFull NamePartyUpon Inauguration
1WashingtonWashington, George(None)Move the Washington marker to the current execution position. Every Nation must be founded by Washington.
2AdamsAdams, JohnF???
3JeffersonJefferson, ThomasD-RAdd the value in the register named by the following president to the value in Washington, and store the result in Washington.
4MadisonMadison, JamesD-RSubtract the value in the register named by the following president from the value in Washington, and store the result in Washington.
5MonroeMonroe, JamesD-RStore the value in the Washington register into the register named by the following president.
6QuincyAdams, John QuincyD-RLoads the value in the register named by the following president into the Washington register. Despite accusations of corruption against Quincy, no memory corruption has been known to occur when using this instruction.
7JacksonJackson, AndrewDIncrement the Washington register.
8VanBurenVan Buren, MartinDDecrement the Washinton register.
9HarrisonHarrison, William HenryWDo nothing.
11PolkPolk, JamesDIf the Washington register contains a nonzero value, move execution to the position of the Washington marker.
12TaylorTaylor, ZacharyWReceive a single value from input, in an implementation-defined manner.
13FillmoreFillmore, MillardWMove the Washington marker to the current execution position plus the value in the Washington register.
14PiercePierce, FranklinDPush the stack. The Washington register retains a copy of its previous value.
15BuchananBuchanan, JamesDPop the stack.
16LincolnLincoln, AbrahamRReset the values of all registers: Washington to 0, the rest to the uninitialized state.
17JohnsonJohnson, AndrewD
18GrantGrant, UlyssesR
19HayesHayes, RutherfordR
20GarfieldGarfield, JamesR
21ArthurArthur, ChesterR
22ClevelandCleveland, GroverD
23HarrisonHarrison, BenjaminR<em>same name as #9</em>
24ClevelandCleveland, GroverD<em>same name (and same person) as #22</em>
25McKinleyMcKinley, WilliamR
26RooseveltRoosevelt, TheodoreR
27TaftTaft, William HowardR
28WilsonWilson, WoodrowD
29HardingHarding, WarrenR
30CoolidgeCoolidge, CalvinR
31HooverHoover, HerbertR
32RooseveltRoosevelt, FranklinD<em>same name as #26</em>
33TrumanTruman, HarryD
34EisenhowerEisenhower, DwightR
35KennedyKennedy, JohnD
36JohnsonJohnson, LyndonD<em>same name as #17</em>
37NixonNixon, RichardRIllegal instruction.
38FordFord, GeraldR
39CarterCarter, JimmyD
40ReaganReagan, RonaldR
41BushBush, George H. W.R
42ClintonClinton, BillD
43BushBush, George W.R<em>same name as #41</em>
44ObamaObama, BarackD
45TrumpTrump, DonaldR<em>Reserved instruction until out of office</em>