TAG::RCG.3pm

Langue: en

Version: 2002-09-18 (mandriva - 01/05/08)

Section: 3 (Bibliothèques de fonctions)

NAME

TAG::RCG - output content of a Tree Adjoining Grammar (TAG) as a Range Concatenation Grammar (RCG)

SYNOPSIS

  use TAG::RCG;
  
  # using RCG method on a TAG::Document 
  @rules = $tag_document->RCG();
 
 

DESCRIPTION

Calling `"RCG"' on an TAG object prints it as a Range Concatenation Grammar. Some information are lost during the process.

OPTIONS

     none.
 
 

EXAMPLES

Here is an example of parsing a TAG in XML format and emitting it as a RCG:
     use TAG::XML::Parser;
     use TAG::RCG;
 
     my $parser = TAG::XML::Parser->new ();
     my $doc = $parser->parsefile( $grammarfile );
 
     print join("\n",$doc->RCG()),"\n";
 
 

AUTHOR

Eric de la Clergerie, Eric.De_La_Clergerie@inria.fr

SEE ALSO

TAG (3)