Changeset 42 in text-formbuilder for trunk/lib/Text/FormBuilder/grammar


Ignore:
Timestamp:
12/09/04 11:33:17 (20 years ago)
Author:
peter
Message:

added a create_form exported method to "do the right thing" in simple cases
added parse_array method to parse an array of lines making up a formspec
some internal cleanup of the lines structure

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/lib/Text/FormBuilder/grammar

    r39 r42  
    7575 
    7676validate_def: '!validate' var_name <perl_codeblock> 
    77     { $subs{$item{var_name}} = $item[3] } 
     77    { $subs{$item{var_name}} = eval "sub $item[3]" } 
    7878 
    7979group_def: '!group' { $context = 'group' } var_name '{' field_line(s) '}' { $context = 'line' } 
Note: See TracChangeset for help on using the changeset viewer.