Modules Example

Demonstrates Tish's import/export syntax for splitting code across multiple files.

Layout

src/
├── main.tish    # Entry point, imports greet from greet.tish
└── greet.tish   # Exports the greet function

Run

tish run src/main.tish

Compile

tish build src/main.tish -o hello
./hello

Output: Hello, World

Improve this documentation