Contents
Part I Tutorial
Chapter 1 Language Basics
1.1 Defining a data-structure
1.2 Retrieving information in a data-structure
1.3 Combining Tom and Java
1.4 Programming in Tom
Chapter 2 Advanced features
2.1 The “Hello World” example
2.2 Associative matching
2.3 Another example using Gom
2.4 Anti-matching
2.5 Hand-written mappings
Chapter 3 Strategies
3.1 Introduction to strategies
3.2 Strategies in practice
3.3 Advanced usage
Chapter 4 XML
4.1 Manipulating
Xml
documents
4.2 Building and sorting
Xml
/DOM documents
Part II Language
Chapter 5 Tom
5.1 Notations
5.2 Tom constructs
5.3 Tom signature constructs
5.4 XML pattern
Chapter 6 Gom
6.1 Gom syntax
6.2 Generated API
6.3 Combining Gom with Tom
6.4 Strategies support
Chapter 7 Strategies
7.1 Elementary strategy
7.2 Basic strategy operators
7.3 Strategy library
7.4 Strategies with identity considered as failure
7.5 Strategies generated by Gom
7.6 Matching and visiting a strategy
7.7 Implementing elementary strategies in Java
Chapter 8 Runtime Library
8.1 Predefined mappings
8.2 XML
Part III Tools
Chapter 9 Installation
9.1 Requirements
9.2 Installing Tom
9.3 Getting some examples
9.4 Compiling Tom from sources
Chapter 10 Using Tom
10.1 The Tom compiler
10.2 Development process
10.3 Command line tool
10.4 Ant task
Chapter 11 Using Gom
11.1 Command line tool
11.2 Ant task
Chapter 12 Configuring your environment
12.1 Editor
12.2 Shell
12.3 Build Tom projects using Ant
Chapter 13 Migration Guide
13.1 Migration from 2.3 to 2.4
13.2 Migration from 2.2 to 2.3
13.3 Migration from 2.1 to 2.2
13.4 Migration from 2.0 to 2.1
13.5 Migration from 1.5 to 2.0
Part IV Cookbook
Chapter 14 Strategies
14.1 Retrieving information from trees
14.2 Modifying information on trees
Chapter 15 Using Gom generated structures
15.1 Extending Gom generated structures
Chapter 16 Encoding rewrite systems
16.1 Transition systems
16.2 Computing all reachable terms