> For the complete documentation index, see [llms.txt](https://todepond.gitbook.io/mothertode/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://todepond.gitbook.io/mothertode/readme.md).

# Intro

[MotherTode](https://github.com/TodePond/MotherTode) is a language that helps me to make languages. It's a language language.

You can embed it, like this:

```html
<script src="mothertode-embed.js"></script>
<script>
	const language = MotherTode("emit (name) => `Hello ${name}!`")
	console.log(language("world")) //Hello world!
</script>
```

Or import it, like this:

```javascript
import { MotherTode } from "./mothertode-import.js"
const language = MotherTode("emit (name) => `Hello ${name}!`")
console.log(language("world")) //Hello world!
```

Or use it from the command line, like this:

```bash
mothertode ./hello.mt "world"
```

## Basics

* [Emit](/mothertode/basics/emit.md)
* [Match](/mothertode/basics/match.md)

## Using Terms

* [Literals](/mothertode/using-terms/literals.md)
* [Constants](/mothertode/using-terms/constants.md)
* [Operators](/mothertode/using-terms/operators.md)
* [Built-In Terms](/mothertode/using-terms/built-in.md)

## Making Terms

* [Properties](/mothertode/making-terms/properties.md)
* [Functions](/mothertode/making-terms/functions.md)
* [Scope](/mothertode/making-terms/scope.md)

## Properties

* [Match](/mothertode/basics/match.md)
* [Skip](/mothertode/advanced-properties/skip.md)
* [Then](/mothertode/advanced-properties/then.md)
* [Emit](/mothertode/basics/emit.md)
* [Check](/mothertode/advanced-properties/check.md)
* [Throw](/mothertode/advanced-properties/throw.md)
* [Print](/mothertode/advanced-properties/print.md)

## Library

* [Library](/mothertode/library/library.md)

## Examples

* [Examples](/mothertode/examples/examples.md)


---

# 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 dynamically by asking a question.

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

```
GET https://todepond.gitbook.io/mothertode/readme.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.
