Skip to main content

Lexical Elements

Keywords

These are what are called reserved words, which means you can't use these as your variable names (you can use the letter "p" but you can't use p on its own as the name for something because that's how TatML knows you're referring to a picot. 

pattern, thread, shuttles, repeat, if, reverse_work, join_to_start
R, C, SR, p, join, prev, current, not_last, import, use

Identifiers

  • Pattern names: quoted strings "Simple Flower"
  • Element IDs: alphanumeric + underscore, starting with letter ring1, center_motif
  • Picot names: alphanumeric + underscore join_here, small

Literals

Literals are values that you set when writing a computer program or, in this case, a tatting pattern. 

  • Numbers: positive integers 1, 5, 12
  • Strings: double-quoted "Pattern Name"
  • File paths: quoted strings "./motifs/some_pattern.tatml"

Operators and Delimeters

Operators are characters or indicators that your code is changing something (like a plus or minus sign when you do math), and delimeters are used to separate or organize parts of the TatML code that represents your pattern or motifs within one. 

: ( ) { } [ ] , ; . //  /* */