# Introduction

![](https://1259634070-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-MN4vpXmlZA0MXB3BKCq%2F-MVmF5MLMMquJVSvuBR7%2F-MVmFAMWoJ9WHvaTeCa7%2FDreamTode%400.5x.png?alt=media\&token=9c1cdc7d-4eb1-4f47-86a0-3fc89e9c15a4)

DreamTode is a language that targets WebAssembly.\
It doesn't exist yet! I'm still planning it! :)

## What's the big idea?

DreamTode is how I would like to write my code. It's my pipedream!\
It's not supposed to be used by anyone else, but you can if you want.

To understand DreamTode, I recommend reading through the pages of this book in order.

## What does it look like?

Here are some examples just to give you an idea of what DreamTode looks like. Don't worry about understanding everything yet.

```javascript
print "Hello world!"
```

```javascript
let greet = [name] => print "Hello {name}!"
greet "world" //Hello world!
```

```javascript
let age = 28
let add = [a, b] => a + b
print add(3, 2)  //5
print age:add(1) //29
```

```javascript
for (10 to 0) [n] -> {
    print n
}
print "Lift-off!"
```


---

# 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://todepond.gitbook.io/dreamtode/master.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.
