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


Ignore:
Timestamp:
11/16/04 15:34:57 (20 years ago)
Author:
peter
Message:

tried adding fall-through to built-in option lists but not yet working
minor tweak to the grammar for option lists (put wimple_multiword in front of value)

File:
1 edited

Legend:

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

    r24 r25  
    2929            author   => $author, 
    3030            description => $description, 
    31             lists    => \%lists,  
    32             patterns => \%patterns,  
    33             headings => \@headings, 
    34             fields   => \@fields, 
    35             lines    => \@lines, 
    36             groups   => \%groups, 
     31            lists    => \%lists    || {},  
     32            patterns => \%patterns || {},  
     33            headings => \@headings || [], 
     34            fields   => \@fields   || [], 
     35            lines    => \@lines    || [], 
     36            groups   => \%groups   || {}, 
    3737        } 
    3838    } 
     
    169169list_var: /@[A-Z_]+/ { $list_var = $item[1] } 
    170170 
    171 option: (value | simple_multiword | quoted_string) display_text(?) 
     171option: (simple_multiword | value | quoted_string) display_text(?) 
    172172    { push @options, { $item[1] => $item{'display_text(?)'}[0] } } 
    173173 
Note: See TracChangeset for help on using the changeset viewer.