The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

NAME

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

VERSION

Version 0.04

SYNOPSIS

  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

new

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

AUTHOR

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

BUGS

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

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

    perldoc HPSG::Mason::Interp

You can also look for information at:

ACKNOWLEDGEMENTS

COPYRIGHT & LICENSE

Copyright 2009 C.J. Adams-Collier, all rights reserved.

This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.