Changeset 82 in text-formbuilder for trunk/lib/Class


Ignore:
Timestamp:
04/21/05 10:48:19 (20 years ago)
Author:
peichman
Message:

added a $parser->{debug} attribute to Class::ParseText::Base that controls $::RD_TRACE
added as_script and as_module methods that return the Perl code without writing to a file
changed required field message and markers

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/lib/Class/ParseText/Base.pm

    r75 r82  
    7878    croak '[' . (caller(0))[3] . '] No start rule given for the parser' unless defined $start_rule; 
    7979     
     80    # set the trace in RecDescent if we have the debug flag 
     81    $::RD_TRACE = $self->{debug} ? 1 : undef; 
     82     
    8083    $self->{$start_rule} = $self->{parser}->$start_rule($src); 
    8184     
Note: See TracChangeset for help on using the changeset viewer.