> 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)
