Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
26 changes: 0 additions & 26 deletions languages/tl-b/syntax-and-semantics.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -79,32 +79,6 @@ a comment
// This is a single-line comment
```

### Libraries import

You can use **TL-B libraries** to extend your documents and to avoid writing repetitive schemes.
In TL-B libraries, there is no concept of cyclic import.
Just indicate the dependency on some other document (library) at the top of the document with the keyword `dependson`:

```tlb
//
// dependson "libraries/tosstdlib.tlb"
//

op:uint32 data:Any = MsgBody;
something$0101 data:(Maybe ^MsgBody) = SomethingImportant;
```

In dependencies, you are required to specify the correct relative path. The example above is located in such a tree:

```
.
├── mydoc.tlb
├── libraries
│ ├── ...
│ └── tosstdlib.tlb
└── ...
```

## Semantics

From a high-level perspective, the **right-hand side** of each _scheme_ is a type, either simple (such as `Bit` or `True`) or parametrized (such as `Hashmap n X`) and
Expand Down