Identifiers

Identifiers represent symbols and names in the VelosiRaptor language and thus play a central role when specifying translation units.

Identifier

An identifier begins with either an alpha character or an underscore, and may be followed by a sequence of alphanumeric characters and underscores.

IDENT := [ ALPHA | "_" ] [ALPHANUM | "_" ]*

Example: foo, foo_bar, foobar_1234

Naming Conventions

The VelosiRaptor language roughly follows the naming convention of Rust The compiler will display a warning

ItemPrice
Unit NameCamelCase
Method Namesnake_case
ConstantsSCREAMING_SNAKE_CASE
Parameterssnake_case
Variablessnake_case