Changeset 14 in text-formbuilder for trunk/lib/Text/FormBuilder/grammar
- Timestamp:
- 10/22/04 16:37:16 (20 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/lib/Text/FormBuilder/grammar
r11 r14 1 { my ($title, $author, %lists, %patterns, @fields, @headings, $type, @options, $list_var, $size, $rows, $cols); }1 { my ($title, $author, $description, %lists, %patterns, @fields, @headings, $type, @options, $list_var, $size, $rows, $cols); } 2 2 3 form_spec: (list_def | line)(s)3 form_spec: (list_def | description_def | line)(s) 4 4 { 5 5 $return = { 6 6 title => $title, 7 7 author => $author, 8 description => $description, 8 9 lists => \%lists, 9 10 patterns => \%patterns, … … 29 30 30 31 list_name: /[A-Z_]+/ 32 33 description_def: '!description' <perl_codeblock> 34 { warn "[Text::FormBuilder] Description redefined at input text line $thisline\n" if defined $description; 35 36 $description = $item[2]; 37 $description =~ s/^{\s*|\s*}$//g; 38 } 31 39 32 40 line: <skip:'[ \t]*'> ( title | author | pattern_def | heading | field | comment | blank ) "\n"
Note: See TracChangeset
for help on using the changeset viewer.