Vikari Language Documentation


Available since:  v0.6.0.

Line Continuations

The line continuation operator ~ is the deletion operator placed at the very end of a line of code. This in effect "deletes" the newline, which is the line terminator for statements in Vikari. This allows a line of code to be continued to the next line. This enables long lines to be written across multiple lines.

Examples

The following demonstrates various ways a statement can be split using the line continuation operator.

~:The example statement being split.:~
foo:Integer << 7 * [5 - 2]

~:Splitting the statement across two lines.:~
foo:Integer << ~
7 * [5 - 2]

~:Splitting the statement across three lines.:~
foo:Integer ~
<< 7 * ~
[5 - 2]

~:You can include blank lines.:~
foo:Integer << ~
~
7 * [5 - 2]