Changeset 55 in text-formbuilder


Ignore:
Timestamp:
01/13/05 14:32:57 (19 years ago)
Author:
peichman
Message:

updated version number
added Class::Base to dependancies
laid groundwork for using !groups directly in a form line

Location:
trunk
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/Makefile.PL

    r23 r55  
    1010                            Parse::RecDescent => 1.94, 
    1111                            Text::Template => 1.44, 
     12                            # requirement for Class::ParseText::Base 
     13                            Class::Base => 0.03, 
    1214                         }, # e.g., Module::Name => 1.1 
    1315    ($] >= 5.005 ?     ## Add these new keywords supported since 5.005 
  • trunk/lib/Class/ParseText/Base.pm

    r53 r55  
    7777    my $start_rule = $self->{start_rule}; 
    7878    croak '[' . (caller(0))[3] . '] No start rule given for the parser' unless defined $start_rule; 
     79     
    7980    $self->{$start_rule} = $self->{parser}->$start_rule($src); 
    8081     
     
    204205=back 
    205206 
     207I<Be sure that you explicitly return the object!> This is a bug that 
     208has bitten me a number of times. 
     209 
    206210=head1 TODO 
    207211 
  • trunk/lib/Text/FormBuilder.pm

    r53 r55  
    77use vars qw($VERSION @EXPORT); 
    88 
    9 $VERSION = '0.08'; 
     9$VERSION = '0.09_01'; 
    1010@EXPORT = qw(create_form); 
    1111 
  • trunk/lib/Text/FormBuilder/grammar

    r50 r55  
    191191hint: '[' /[^\]]+/ ']'    { $item[2] } 
    192192 
    193 type: ':' /textarea|text|password|file|checkbox|radio|select|hidden|static/ 
     193# TODO: differentiate between builtins and custom field groups 
     194type: ':' ( builtin_field | var_name { warn "[Text::FormBuilder] Using field group names directly is not (yet) supported (input line $thisline)\n"; 'text' } ) 
     195 
     196builtin_field: /textarea|text|password|file|checkbox|radio|select|hidden|static/ 
     197 
    194198 
    195199default: '=' (simple_multiword | quoted_string) { $item[2] } 
Note: See TracChangeset for help on using the changeset viewer.