HPSG::Mason::Interp - Mason components for rendering Head-driven Phrase Structure Grammar feature structures to \LaTeX


HPSG-Mason documentation  | view source Contained in the HPSG-Mason distribution.

Index


NAME

Top

HPSG::Mason::Interp - Mason components for rendering Head-driven Phrase Structure Grammar feature structures to \LaTeX

VERSION

Top

Version 0.04

SYNOPSIS

Top

  use HPSG::Mason::Interp;

  my %phrase;

  $phrase{I} =
    {
     expression_arg =>
     {
      expr_type => 'phrase',
      syn_arg => { head_arg => { pos     => 'noun',
                                 agr_arg => { agr_cat => '1sing',
                                              per     => '1st',
                                              num     => 'sg',
                                            },
                                 case    => 'nom'
                               },
                   val_arg  => { spr   => [ ],
                                 comps => [ ],
                                 mod   => [ ],
                               }
                 },
      sem_arg => { mode  => 'ref',
                   index => '{\it i}',
                   restr => [ { reln => 'speaker',
                              inst => 'i',
                              } ]
                 }
     },
     tag => 9,
     daughters => [ 'I' ],
    };

  my $outbuf;
  my $interp = HPSG::Mason::Interp->new( outbuf => \$outbuf);

  $interp->exec( '/tree.mas', { root => $phrase{I} } );

  my $fname = 'lex_I.tex';

  open( my $fh, q{>}, $fname ) or die "couldn't open file '$fname': $!";
  print $fh $outbuf;
  close $fh;

FUNCTIONS

Top

new

See HTML::Mason::new, we just add the search path for some stock components

AUTHOR

Top

C.J. Adams-Collier, <cjac at u.washington.edu>

BUGS

Top

Please report any bugs or feature requests to bug-hpsg-mason at rt.cpan.org, or through the web interface at http://rt.cpan.org/NoAuth/ReportBug.html?Queue=HPSG-Mason. I will be notified, and then you'll automatically be notified of progress on your bug as I make changes.

SUPPORT

Top

You can find documentation for this module with the perldoc command.

    perldoc HPSG::Mason::Interp




You can also look for information at:

* RT: CPAN's request tracker

http://rt.cpan.org/NoAuth/Bugs.html?Dist=HPSG-Mason

* AnnoCPAN: Annotated CPAN documentation

http://annocpan.org/dist/HPSG-Mason

* CPAN Ratings

http://cpanratings.perl.org/d/HPSG-Mason

* Search CPAN

http://search.cpan.org/dist/HPSG-Mason

ACKNOWLEDGEMENTS

Top

COPYRIGHT & LICENSE

Top


HPSG-Mason documentation  | view source Contained in the HPSG-Mason distribution.