QF4Ds‖Syntax Diagrams

Contents
kinGJ‖

# aBBaD‖How to Read Syntax Diagrams and Statements

k3Ey9‖LibreOffice Basic statements use syntax diagrams and textual conventions that follow these notations:

- jufhF‖LibreOffice Basic keywords or functions use camel casing: Call, DimArray, InputBox, Property.

- ny9xr‖Lowercase characters indicate information to supply: end, expression, start, variable.

6cDAC‖The syntax of a LibreOffice Basic one line statement is illustrated herewith:

## 8Co5j‖Diagram example

- 5AfpR‖Basic statement diagrams start and end with double vertical bars,

- oNAUQ‖Loops indicate a possible repetition, an optional separator may be present,

- qBArU‖Rectangles denote subsequent diagram fragments,

- MgRRZ‖Diagram fragments extremities exhibit single vertical bars.

2ERcw‖

QDyRr‖A set of LibreOffice Basic statements - with optional labels - is using a colon : sign to separate them, it can be terminated with an optional comment. REM or an apostrophe sign introduce a comment.

fR7p7‖

## tMPo2‖Textual example

- vtggd‖[opt1|opt2|opt3] Items inside brackets are optional, alternatives are indicated with a vertical bar,

- ap6xE‖case[[sep]…] An ellipsis indicates a possible repetition, an optional separator may be specified,

- SCKAc‖{choice1|choice2} Items inside curly braces are mandatory, alternatives are indicated with a vertical bar.

[ [label:] statement [: …] ] [{REM|'} text]

VFKcU‖A set of LibreOffice Basic statements - with optional labels - is using a colon : sign to separate them, it can be terminated with an optional comment. REM or an apostrophe sign introduce a comment.

### EFSA4‖Example:

           Sub Main
           h7uXB‖    GoTo there ' skip first statement and display '2'
           F5v7o‖    here: Print 1, : there: Print 2 REM multi-statement line
           End Sub

Related Topics

GoTo Statement

Print# Statement

Rem Statement

Sub Statement

Please support us!