Skip to content

Statements and Blocks

In Junlang, marks both the end of a statement and the end of a block.

  • Every regular statement ends with .
  • Blocks are also closed with .

Regular Statements

junlang

A statement consisting of the single expression (1).

Blocks

Conditionals, loops, and similar constructs use blocks. A block groups multiple statements together and is closed with .

junlang
준서야 맞냐?
  오준서오

This code consists of two parts:

  1. Statement inside the block: 오준서오ㅋ — a print statement ending with
  2. Block close: the on the following line

Inline Writing

When a statement-ending and a block-closing appear consecutively, they merge into ㅋㅋ.

junlang
준서야맞냐?준서ㅋㅋ

The code above has exactly the same meaning as the previous example. Line breaks and indentation are purely for readability and have no effect on behavior.