> For the complete documentation index, see [llms.txt](https://boxlang.ortusbooks.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://boxlang.ortusbooks.com/boxlang-language/reference/lexical-elements/tokens.md).

# Tokens

Tokens in BoxLang include the following:

1. [**Identifiers**](/boxlang-language/reference/lexical-elements/identifiers.md): These are names used for variables, functions, and other user-defined items. They must start with a letter and can contain letters, numbers, and underscores. Dashes are not allowed within root-level variable names.

   Example: `myVariable`, `calculated_sum`
2. [**Keywords**](/boxlang-language/reference/lexical-elements/keywords.md): These are reserved words that have special meaning in BoxLang. They include control flow keywords like `if`, `else`, `for`, `while`, and many others.

   Example: `if`, `component`, `function`
3. [**Operators**](https://github.com/ortus-boxlang/boxlang-docs/tree/v1.x/boxlang-language/reference/lexical-elements/broken-reference/README.md): These are symbols that perform operations on one or more operands. They include arithmetic operators (`+`, `-`, `*`, `/`), comparison operators (`==`, `!=`, `<`, `>`), logical operators (`&&`, `||`), and others.

   Example: `+`, `==`, `&&`
4. [**Literals**](/boxlang-language/reference/lexical-elements/literals.md): These are fixed values that can be numbers, strings, booleans, or null.

   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. [**Comments**](/boxlang-language/reference/lexical-elements/comments.md): These are notes in the code that are ignored by the BoxLang interpreter. Single-line comments start with `//`, and multi-line comments are enclosed between `/*` and `*/`.

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


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://boxlang.ortusbooks.com/boxlang-language/reference/lexical-elements/tokens.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
