HPSG::Mason::Interp - Mason components for rendering Head-driven Phrase Structure Grammar feature structures to \LaTeX
Version 0.04
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;
See HTML::Mason::new, we just add the search path for some stock components
C.J. Adams-Collier, <cjac at u.washington.edu>
<cjac at u.washington.edu>
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.
bug-hpsg-mason at rt.cpan.org
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
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.
To install HPSG::Mason, copy and paste the appropriate command in to your terminal.
cpanm
cpanm HPSG::Mason
CPAN shell
perl -MCPAN -e shell install HPSG::Mason
For more information on module installation, please visit the detailed CPAN module installation guide.