Skip to content

Formal Language Grammar

Jack Lloyd-Walters edited this page Aug 19, 2021 · 4 revisions

The following page lists the formal grammar of the Verboscript language, as it has been defined

For a list of example syntax, including feature ideas and those that have not yet been implemented, see the following two pages here and here

Formal Grammar

Symbols

General

. - Decimal point, and sentence termination

, - None yet

" - Force string format (requires two either side of expression)

' - As above

= - assignemnt (not implemented yet)

( - Combining operations with high precedence (requires two either side)

) - Closing the above

\t - Indentation (or four spaces)

Logical

! - Logical not

== - Equality

> - Greater comparison

< - Less than comparison

Mathematical

+ - Addition

- - Subtraction and negation

* - Multiplication

/ - Division

Datatypes

20.04 - Floats - numbers are represented with a characteristic and mantissa

True - Booleans - Values are represented as Truthy or Falsey

None - Null typing - A base value that corresponds to nothingness.

Keywords

None - add the Null type

False - Use the boolean false

show - Display output to screen

True - Use the boolean true

Not - invert the following boolean

Equals - assignment

Equal to - equality

Less than - less comparitive

Greater than - greater comparitive

Clone this wiki locally