Changeset 39 in text-formbuilder for trunk/lib/Text/FormBuilder/grammar
- Timestamp:
- 12/07/04 16:18:02 (20 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/lib/Text/FormBuilder/grammar
r29 r39 11 11 %lists, 12 12 %patterns, 13 %subs, # validation subs 13 14 @group, # current group 14 15 %groups, # stored groups of fields … … 24 25 } 25 26 26 form_spec: (list_def | description_def | group_def | line)(s)27 form_spec: (list_def | description_def | validate_def | group_def | line)(s) 27 28 { 28 29 # grab the last section, if there is any … … 45 46 lists => \%lists, 46 47 patterns => \%patterns, 48 subs => \%subs, 47 49 groups => \%groups, 48 50 sections => \@sections, … … 71 73 $description =~ s/^{\s*|\s*}$//g; 72 74 } 75 76 validate_def: '!validate' var_name <perl_codeblock> 77 { $subs{$item{var_name}} = $item[3] } 73 78 74 79 group_def: '!group' { $context = 'group' } var_name '{' field_line(s) '}' { $context = 'line' }
Note: See TracChangeset
for help on using the changeset viewer.