My programming language
Say "Hello world!":
printf("Hello world!")
>>> Hello world!
Ask a question and print the response:
declare name = inputf("What's ur name ?\nYou: ")
printf("Hi [name] !")
>>> What's ur name ?
>>> You: Artic
>>> Hi Artic !
Create a function and call it:
build SayHelloTo(name)
{
printf("Hello [name] !")
}
SayHelloTo("Artic")
>>> Hello Artic !
Return a string:
build ReturnString()
{
declare myString = "Hello world!"
return myString
}
ReturnString()
printf(myString)
>>> Hello world!
The modules:
module.potato
build hi(name)
{
printf("Hi [name] !")
}
file.potato
with module.potato
hi("Artic")
>>> Hi Artic !
It's simple, join the discord and post your code in the forum "projets" -> "PotatoLang2"
I will merge the code every day if your code adds features to the language !
- Download the language
- Download some examples
- Put them in a common folder
- Open a terminal
- Type "./PotatoLang2 helloWorld.potato"
- You're done !
That's all
Made with ❤️ by Artic and CodeSec Community (SilentHealer's server)