# Syntax

Each line in Budgie starts with a function name. If there are arguments, they are preceded by a space-padded colon following the function name, all separated by spaces.

```
print : "Budgie!"
```

* Function: `print`
* Argument: `"Budgie!"`

This will compile to:

* In C#: `System.Console.WriteLine("Budgie!");`
* In Python: `print("Budgie!")`

Many commands, including `print`, may take in multiple arguments:

```
print : "Chirp" "chirp!"
```

* Function: `print`
* Arguments: `"Chirp"`, `"chirp!"`

## Parenthesis

You can keep spaces inside your arguments by wrapping characters in parenthesis. This tells the compiler to treat the space as part of the argument instead of a separator.

```
print : ("Hello world!")
```

* Function: `print`
* Argument: `"Hello world!"`

## Recursion

To pipe the output of one command into another, wrap the inner command with`{}`brackets.

```
print : { operation : 1 plus 2 }
```

* Function: `print`
* Argument:
  * Function: `operation`
  * Arguments: `1`, `plus`, `2`


---

# Agent Instructions: Querying This Documentation

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

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.budgielang.org/syntax.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
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.
