Skip to content

Commit

Permalink
Update syntax.md
Browse files Browse the repository at this point in the history
  • Loading branch information
bgk- committed Jul 11, 2024
1 parent d3fcff5 commit 1e727a4
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions docs/syntax.md
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,7 @@ All boughs, forks, and choices have visit counts.
If a choice is not in a named fork its path is the fork index within the bough preceeded by an underscore `_0`, `_1`, etc
(but this is not recommended, best to give it a name).

```
```topi
=== START {
// Not Recommended
fork^ {
Expand Down Expand Up @@ -184,7 +184,7 @@ If a choice is not in a named fork its path is the fork index within the bough p

Visit paths can be found within scopes and don't need the full path written out.

```
```topi
=== START {
:speaker: "Starting"
fork NAMED {
Expand Down Expand Up @@ -285,7 +285,7 @@ Topi has three builtin collection types. Lists, Sets, and Maps. Each type has fi

Lists are a collections of values in order.

```
```topi
var list = List{"one", "two", "three"} // List{"one", "two", "three"}
var emptyList = List{}
Expand All @@ -298,7 +298,7 @@ list.clear() // List{}

Sets are a collection of unique values.

```
```topi
var set = Set{"one", "two", "one"} // Set{one, two}
const emptySet = Set{}
Expand All @@ -311,7 +311,7 @@ set.clear() // Set{}

Maps are a collection of key/value pairs.

```
```topi
const map = Map{"one": 1, "two": 2} // Map{one:1, two:2}
const emptyMap = Map{}
Expand Down

0 comments on commit 1e727a4

Please sign in to comment.