Amalgamation
Jump to navigation
Jump to search
- This is still a work in progress. It may be changed in the future.
Amalgamation is a language created by user:GluonVelvet that plans to accumulate multiple features often considered strange, unique, or just plain bad from other languages into one joke language! Help me out by giving suggestions and feedback in the discussion forum!
What this language plans to include:
- Head for storing variables and style statements (html)
- Body for storing program operations (html)
- Maybe garbage collection: Garbage collector only works sometimes, but more often when you ask nicely (InterCal)
- Periods at the end of statements and semicolons where there would be periods (Cobol, Erlang)
- Brainfuck instructions for array manipulation (brainfuck)
- Arrays that start at one in which you have to type: START ARRAYS AT INDEX 0 in all caps in the style statement for it to change (julia, lua, etc)
- λ as an anonymous function Lambda calculus (Python)
- Usage of $( and $) to enclose loops and other statements (excludes brainfuck commands) (BCPL)
- NB used for comments (J and APL)
- when is used instead of if (Gulf of Mexico/Dreamberd)
- my and our for private and public variables respectively (perl, raku)
- to get input you must take the variable from the refrigerator (chef)
- More to come soon!
Examples of code (may change later)
Hello, world!
<head> NB Hello, world! </head> <body> print(“Hello, world!”). </body>
Truth Machine
<head> NB Truth Machine int t = 0. </head> <body> take t from refrigerator. when (t == 0)$( print(“0”). $) else$( while(t == 1)$( print(“1”). $) $) </body>
Cat Program
<head> NB Endable Cat Program String kitty = “”. </head> <body> while (Not kitty;equals(“end”))$( print(“Type end to end”). NB Note: do not put your cat in the refrigerator take kitty from refrigerator. print(kitty). $) </body>