tom is a software environment for defining transformations
This manual provides documentation for Tom version 2.6, a software environment designed for defining transformations through pattern matching. It supports integration with C, Java, and Caml, and includes constructs like %match for discriminating and retrieving information from algebraic data structures. The manual is divided into sections covering guided tours, tutorials, language reference, tools, installation, and migration guides.
The document includes practical examples, detailed syntax descriptions, and explanations of runtime libraries and strategies. It also covers advanced features such as term-graph rewriting, XML manipulation, and custom mappings, making it suitable for both new users and experienced developers.
Tom is a software environment for defining transformations that acts as a language extension adding new matching primitives to C, Java, and Caml.
The main construct is %match, which selects the first pattern that matches a subject object and performs the associated action.
Tom is particularly well-suited for programming transformations on trees/terms or Xml data-structures.