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.
@nk1rwc I know. But this language cannot accept internet slang: e.g. lol or lmao. You also have to laboriously type abbreviations, i.e. expanding to id est, and e.g. expanding to exemplis gratis.
@DynamicSquid there is a language exactly like that called ~English on Esolang.org, here's the link: Esolang>Wiki>~English, yu should read the article it seems nice.
@DynamicSquid You know what? I was never given the GitHub page myself :). @RohilPatel Is there an actual GitHub page? Is Encode dead? (or is it encodedead?)
Sorry I haven't gotten to much of it since school. I just have been getting stacked with homework. And I kinda forgot about it. I still want to work on it though since we got quite a bit of it somewhat done. @xxpertHacker
display on screen 'Hello World'
set the variable A to a random number between 1 and 10
ask 'Guess my number between 1 and 10' and set Reply to the returned input
if variable A is equal to variable Reply, display on screen 'Well done!'
quit program
@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.
Something like:
Say "Hello world!"
or
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
Wildest programming language idea
What is your wildest programming language idea? This could be fun (silly) ideas or really cool and useful ones.
Go!
Also on le twatter: https://twitter.com/replit/status/1275525512861900800
Make a language with the exact same syntax as ENGLISH. For example:
Now, you can say that you're favourite language is English!
@DynamicSquid
LOL
@johnstev111 easy to use!
@DynamicSquid As long as you are a fluent English speaker.
And all English lessons are now coding lessons too.
@johnstev111 lol
@DynamicSquid Simple way of making school even more interesting than it already is...
@johnstev111 :)
@DynamicSquid lol
@johnstev111
@awesome10 The point is that it's English
@johnstev111 exactly
@DynamicSquid You have to deal with synonyms though
@DynamicSquid dude that lang is good (english grammar lang)
@nk1rwc I know. But this language cannot accept internet slang: e.g. lol or lmao.
You also have to laboriously type abbreviations, i.e. expanding to id est, and e.g. expanding to exemplis gratis.
@DynamicSquid lol i think the name for it already exist, lookup pseudocode
@ChezCoder lol
Was that you're intentional or can I make fun of you @DynamicSquid
@PXY yes
oh ok @DynamicSquid
@ChezCoder So correct
lol @DynamicSquid
Thats so [email protected]
Try Chinese instead of English?
Hello world would be:
打印 “你好世界”。
This prints whatever you enter:
a 设为 输入(“输入:”)
打印 a
LOL @Barry123
@DynamicSquid that would make math problem solving easy.
To implemement this look for a NLP library for your language
To improve on that idea, try spelling everything backward!
@DynamicSquid
@DynamicSquid https://github.com/pannous/english-script
I was thinking of it and even about using natural language processing libraries to do it. But it kind of exists already.
@CSharpIsGud oh wow lol
@Barry123 WOOHOOOO!!!!! CHINESE DA BEST!
Woohoo!
Wow that would be cool, lol
@DynamicSquid
@Barry123 我为此使用了翻译器。没有意义。
@DynamicSquid well... isn't visual basic [kinda] like that?
@DynamicSquid Been done. See: Shakespeare language, Lingo language, etc
@DynamicSquid lol
@Barry123 WOO Chinese!
@DynamicSquid
to make the language more realistic, it needs bad error messages
even worse, there is no evaluation before code is run.
if there is bad language (profanity, ect), that will also have an error.
theres something to make ur lang more realistic
@DungeonMaster00 lol nice idea!
@DynamicSquid
Python
English
english programming language is kinda pseudocode @DynamicSquid
@DynamicSquid there is a language exactly like that called ~English on Esolang.org, here's the link: Esolang>Wiki>~English, yu should read the article it seems nice.
@DynamicSquid
@DynamicSquid That's sort of like lolcode
@DynamicSquid Use GPT-3 from OpenAI.
@DynamicSquid Let's see how far we can make this go: Encode.
@Theboys619 Are we done with Encode? I forgot that I had broken the syntax highlighter in some obscure, weird way, but I didn't know what was wrong.
@xxpertHacker lol that's cool! could you link the github page? I couldn't find it on the website
@DynamicSquid You know what? I was never given the GitHub page myself :).
@RohilPatel Is there an actual GitHub page? Is Encode dead? (or is it encoded
ead?)Are we keeping the old docs?
Sorry I haven't gotten to much of it since school. I just have been getting stacked with homework. And I kinda forgot about it. I still want to work on it though since we got quite a bit of it somewhat done. @xxpertHacker
@Theboys619 Can you link the github page?
Yea sure. https://github.com/Theboys619/EncodeLang. @DynamicSquid
Sorry about not giving the github @xxpertHacker
@Theboys619 Oh ew, it's js, nvm lol
It's not up to date though.
Gottem. At least its TS a 1/3 of a step up from JS.
@Theboys619 lol
@Theboys619 I haven't been working on it either, neither has Rohil, so it's okay.
I'll go put the GitHub link on the docs website though.
I could remove the dynamic functionality from the server, allowing us to host the docs on GitHub instead, should I or not?
I mean its up to you for that. I don't really care where the website is. Probably ask Rohil. @xxpertHacker
@firefish I dont want to learn english as twice as much.
@DynamicSquid Nice idea! I think I will try to make something like that if that's ok with you
@DynamicSquid i know this is from like...5 months ago but i've decided to make a lang like this :D
@NoNameByProgram cool! Could I take a look at it?
@DynamicSquid sure! it's one of my first langs :/
https://repl.it/@LiteDev/EnglishCompiler
@DynamicSquid except you have to memorize the exact syntax, it's long, and if you suck at spelling, well yeah, you get it
(hopefully!)
@DynamicSquid
So...
@DynamicSquid
Nice idea!
@DungeonMaster00 lol and then:
this is beautiful @DynamicSquid
@DynamicSquid
Hack DynamicSquid.Bank()
Successfully Stole 50000
@DREWNOLT or better yet:
I think this is amazing lol @AnthonyMouse
If someone actually figured out how to do a print statement…(without a gibberish string) I’d be impressed lol @BlakeLeee
@RahulChoubey1
@DabDatBass
@RahulChoubey1
@DabDatBass ok
@RahulChoubey1
@DabDatBass
@Daniel3210 "snake" LOL. Python is two things, a snake and a programming language.
@DynamicSquid you're looking for ~English
you can support the addition of ~English here.
@firefish This would make programming SO much easier
@DynamicSquid If this were real there would be a lot more programmers in the world and I bet most of them would use English. Lol
@DynamicSquid
Unexpected English syntax error: Dangling modifier at 'Having finished the promise, print it to the console' (185:1)
@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.
Something like:
or
Through analyzing what one wrote (identifying what words and how they relate to each other) a fully working language could be made
that wud be a lot of typing....
@firefish lol
@firefish print "duck"
@McJoe21 i confuzzled
@firefish awesome but way too much typing ;)
@DynamicSquid that would be so useful.
@DynamicSquid then when you get an error instead of seeing
syntax error: no matching [
you would seeuh, sir yu forgot the end square bracket
@firefish it’s called skript, you use it for making Minecraft plug-ins