Skip to content

ArticOff/PotatoLang

Repository files navigation

PotatoLang2

My programming language

Quick Examples

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 !

You want to help me ?

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 !

How to install it ?

  1. Download the language
  2. Download some examples
  3. Put them in a common folder
  4. Open a terminal
  5. Type "./PotatoLang2 helloWorld.potato"
  6. You're done !

That's all


Made with ❤️ by Artic and CodeSec Community (SilentHealer's server)