Vikari Language Documentation


Available since:  v0.1.1.

Print Statements

Print statements use the print operator : to print a series of AtonementCrystal values to standard output. A print statement is a series of print expressions. Each print expression is defined by a : followed by an expression that resolves to an AtonementCrystal. Print statements are then optionally terminated by a final : which then prints a newline at the end of the other printed values.

A print statement may also be a single : with nothing else. Which then simply prints a newline to standard output.

Examples

The following demonstrates various usages of print statements.

~:Print a single newline to standard output.:~
:

~:Print a number to standard output.:~
:0

~:Print more numbers to standard output.:~
:1:2:3

~:Print a value to standard output, terminated by a newline.:~
:true:

~:Print multiple values to standard output, terminated by a new line.:~
:5 + 2:9 / 3:8 - 4:

~:Use groupings for increased clarity of printed expressions.:~
:[5 + 2]:[9 / 3]:[8 - 4]:

~:Print multiple newlines to standard output.:~
:
:
:

~:Use the statement separator to make the above statements more terse.:~
:,:,: