T-rule

From UNL Wiki
Revision as of 22:06, 2 August 2012 by Martins (Talk | contribs)
Jump to: navigation, search

T-rules, or transformation rules, are rules that alter the state of the machine. As describe in the UNL Grammar Specs, they follow the general formalism:

<INITIAL STATE>:=<FINAL STATE>;

And may be classified according to the type of modification that they promote:

  • LL, or list-to-list, where the initial state and the final state are list structures
  • TT, or tree-to-tree, where the initial state and the final state are tree structures
  • NN, or network-to-network, where the initial state and the final state are network structures
  • LT, or list-to-tree, converts lists into trees
  • TL, or tree-to-list, converts trees into lists
  • TN, or tree-to-networks, converts trees into networks
  • NT, or network-to-trees, converts networks into trees
Software