# Custom syntax

Due to Skript and skript-mirror limitations, it is not easy to create custom syntax through Java calls alone. To help with this, skript-mirror offers utilities that simplify the creation of custom syntax.

## Shared Syntax

### Event Classes

{% code title="Syntax" %}

```
event-classes
```

{% endcode %}

### Expression

{% code title="Syntax" %}

```
[the] expr[ession][s](-| )%number%
```

{% endcode %}

### Matched Pattern

{% code title="Syntax" %}

```
[the] [matched] pattern
```

{% endcode %}

### Parser Mark

{% code title="Syntax" %}

```
[the] [parse[r]] mark
```

{% endcode %}

### Parser Regular Expression

{% code title="Syntax" %}

```
[the] [parse[r]] (regex|regular expression)(-| )%number%
```

{% endcode %}

### Continue

{% code title="Syntax" %}

```
continue [if (%boolean%|%condition%)]
```

{% endcode %}

{% content-ref url="custom-syntax/effects" %}
[effects](https://skript-mirror.gitbook.io/docs/2.x/advanced/custom-syntax/effects)
{% endcontent-ref %}

{% content-ref url="custom-syntax/conditions" %}
[conditions](https://skript-mirror.gitbook.io/docs/2.x/advanced/custom-syntax/conditions)
{% endcontent-ref %}

{% content-ref url="custom-syntax/expressions" %}
[expressions](https://skript-mirror.gitbook.io/docs/2.x/advanced/custom-syntax/expressions)
{% endcontent-ref %}


---

# 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://skript-mirror.gitbook.io/docs/2.x/advanced/custom-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.
