Vikari Language Documentation


Available since:  v0.3.0.

Statement Separators

The statement separator , is a comma. This is used to write multiple Vikari statements on the same line. Otherwise, a newline is necessary to separate statements, and each statement must be then written on separate lines.

Statements between commas can be blank, so multiple commas in a row are valid syntax. Also, statements may be optionally terminated by commas to be more explicit that a statement has been terminated. However this is not necessary, as a newline alone also explicitly terminates a statement.

Examples

The following demonstrates the proper use of statement separators.

~:Two statements on one line.:~
foo:Integer << 2, :foo:

~:Terminating a statement.:~
bar:Boolean << foo = 2,

~:Multiple grouped commas is valid syntax.:~
,,,:bar:,,,