Skip to main content

Basic Syntax

Pattern Structure

Every TatML file starts with a pattern declaration:

pattern "Pattern Name" {
    // Metadata (optional)
    thread: size20, white
    shuttles: 1
    
    // Pattern elements
    ring1: R(6, p, 6)
    chain1: C(8, p, 8)
}

Comments

// Line comment
/* Block comment */

ring1: R(5, p, 5)  // End-of-line comment

Element IDs

Every ring and chain needs a unique ID:

ring1: R(6, p, 6)        // Good: unique ID
center_ring: R(8, p, 8)  // Good: descriptive name
ring1: R(4, p, 4)        // Error: duplicate ID