Wildest programming language idea
What is your wildest programming language idea? This could be fun (silly) ideas or really cool and useful ones.
Also on le twatter: https://twitter.com/replit/status/1275525512861900800
Make a language with the exact same syntax as ENGLISH. For example:
"This is a comment." Create a new variable named answer. Have the variable named answer store the value of 10. "Don't forget, grammar and spelling matter!" If the variable answer is equal to 10, then do the following: 1. Add a value of 5 to the variable. 2. Create a new variable named question. Otherwise, do the following: 1. Exit the function.
Now, you can say that you're favourite language is English!
Print the following sentence to console: "Well LOL" Call the function under the name of "Test123" Declare a global array called "Drinks" with content: Index zero has: "Tea" Index one has: "Coffee" Index two has: "Peach Juice". Declare a function under the name of "Test123": 1. Pick a random item from the list called "Drinks", and put it in a variable called "drink" 2. Print the variable "drink" to the console. 3. Exit the function.
To improve on that idea, try spelling everything backward!
".tnemmoc a si sihT" .rewsna deman elbairav wen a etaerC .01 fo eulav eht erots rewsna deman elbairav eht evaH "!rettam gnilleps dna rammarg ,tegrof t'noD" :gniwollof eht od neht ,01 ot lauqe si rewsna elbairav eht fI .elbairav eht ot 5 fo eulav a ddA .1 .noitseuq deman elbairav wen a etaerC .2 :gniwollof eht od ,esiwrehtO .noitcnuf eht tixE .1
to make the language more realistic, it needs bad error messages
>>> vtrjfeuiUBYhujuNJNJuj I don't understand that.
even worse, there is no evaluation before code is run.
if there is bad language (profanity, ect), that will also have an error.
# user runs program with swear word. WATCH IT!
theres something to make ur lang more realistic
@DynamicSquid I have the exact same idea! I'm trying to make it so that there's this kind of thesaurus thing and however you phrase something or whatever you use it's come out with the same result.
Say "Hello world!"
Make a variable called "x" and get user input for x.
Through analyzing what one wrote (identifying what words and how they relate to each other) a fully working language could be made