source: text-formbuilder/trunk/lib/Text/FormBuilder/Parser.pm.PL @ 93

Last change on this file since 93 was 91, checked in by peter, 13 years ago
  • switched from EU::MakeMaker to Module::Build
  • pre-compile the Text::FormBuilder::Parser as part of the build process, using a .PL file
  • updated the module version to 0.14
File size: 266 bytes
Line 
1#!/usr/bin/perl -w
2use strict;
3
4# pre-compile the parser from the grammar
5use Parse::RecDescent;
6
7(my $directory = shift) =~ s/Parser\.pm//;
8
9chdir $directory;
10open my $fh, '<', 'grammar';
11Parse::RecDescent->Precompile(join('', <$fh>), 'Text::FormBuilder::Parser');
Note: See TracBrowser for help on using the repository browser.