Github Basics Classes Blocks Directives Builtin

This info is outdated.

Aardvark Basics


✅ Ready but ⚠️ experimental

Comments are crucial to programming languages, they are useful as reminders, notes, or tips, so we went with the best and easiest to use comment system we could.
Single line comments start with // and end at the end of the line, if you want comments to be multi-line, then just end it with \\, but be sure to keep the first line empty. The begining is the same for both single and multi-line comments.


✅ Ready!

If you know Python or JavaScript, variables in Aardvark should be very easy for you. They require no special keywords and Aardvark will automaticly detect the type for you.
Example – String, number, list:
a = "hello" // A string
b = 0 // A number
c = 1.2 // Another number!
l = [a, b, c, "I love lists!"] // A list of items
There are many other types of data too, so make sure to check out the Type section of these docs.

Input and Output

✅ Ready!

Input and Output are crucial to making a program interactive and fun, without them most programs are useless! Here we will talk about the most basic form of input and output, the console. Outputing to the console is very simple, just use the output function, it works like print in Python and console.log in JavaScript.
output("Hello World!")
The input function is also usefull, it works very similarly to the input function in Python.
name = input("What is your name?")
Using only these you can make some simple yet fun projects.
Example – Print my name:
name = input("Hello, what is your name? ")
output("Hi,", name, "!")
In the example above, if I run the code and input Hudson when it asks for my name, then it will output Hi, Hudson !