All pages
Powered by GitBook
1 of 11

Lexical Elements

Loading...

Loading...

Loading...

Loading...

Tokens

Tokens in BoxLang include the following:

  1. Example: myVariable, calculated_sum

  2. Example: if, component, function

  3. Operators: These are symbols that perform operations on one or more operands. They include arithmetic operators (+, -, *, /), comparison operators (==, !=, <, >), logical operators (&&, ||), and others.

    Example: +, ==, &&

  4. Example: 123, "Hello, World!", true, null

  5. Punctuation: These are symbols that separate different parts of the code. They include parentheses ((, )), brackets ([, ]), braces ({, }), semicolons (;), commas (,), and others. Some symbols may also function as literal indicators.

    Example: ;, {, }

  6. Example: // This is a comment, /* This is a multi-line comment */

Loading...

Identifiers

Loading...

Loading...

Loading...