Menu

The say command

say is bubblecode’s primary output command. It prints a value followed by a newline.

example.bubble

You can print any expression: strings, numbers, arithmetic, or variables.

Printing without newlines

Use & and && within a single say to build up a line:

example.bubble

Empty lines

Pass an empty string to say to print a blank line.

example.bubble

Comments

Lines beginning with -- are comments. The interpreter ignores them entirely.

example.bubble

Comments are invaluable for explaining why your code does something, not just what it does.

The tab function

Use tab(n) to indent output by n tab stops (each is 2 spaces).

example.bubble