AIV

From Esolang
Jump to navigation Jump to search

AIV is an interpreted weirdlang that uses french quotes instead of brackets.

Basics

Sample text

Here is a simple test:

display«
The rusted chains of prison moons are shattered by the sun.
»
stop«undisp»

As you can see, we use the symbols « and ». For this, you will have to use Alt+0171 («) and Alt+0187 (»). And also, we don't use print, echo or anything, but it's actually display. And to pause the program, it's the same. It isn't pause or anything, but stop, or stop«undisp», instead.

Paused texts

As we learnt lately, pausing is done due to the command stop«undisp». Then, we will use it a lot of times in this program:

display«
The rusted chains of prison moons are shattered by the sun.
»
stop«undisp»
display«
I walk a road, horizons change, the tournament's begun.
»
stop«undisp»
display«
The purple piper plays his tune, the choir softly sing;
»
stop«undisp»
display«
Three lullabies in an ancient tongue for the court of the crimson king.
»
stop«undisp»

Variables

Sets and counters

Now, we're gonna use these different types of variables:

svar«
x=8
»
svar«
y=9
»
count«
xy=x + y
»
display«
The result is %xy%!
»
stop«undisp»

Inputs

This is how we ask the player a question in a AIV script:

ask«
chocolate=Do you like chocolate (Y/N)? 
»
when«
%chocolate%==Y echo Cool!
»
when«
%chocolate%==N echo Oh...
»
stop«undisp»