Changeset 11 in text-formbuilder for trunk/lib/Text/FormBuilder/grammar
- Timestamp:
- 10/22/04 10:10:54 (20 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/lib/Text/FormBuilder/grammar
r10 r11 1 { my ($title, $author, %lists, %patterns, @fields, $type, @options, $list_var, $size, $rows, $cols); }1 { my ($title, $author, %lists, %patterns, @fields, @headings, $type, @options, $list_var, $size, $rows, $cols); } 2 2 3 3 form_spec: (list_def | line)(s) … … 8 8 lists => \%lists, 9 9 patterns => \%patterns, 10 headings => \@headings, 10 11 fields => \@fields, 11 12 } … … 29 30 list_name: /[A-Z_]+/ 30 31 31 line: <skip:'[ \t]*'> ( title | author | pattern_def | field | comment | blank ) "\n"32 line: <skip:'[ \t]*'> ( title | author | pattern_def | heading | field | comment | blank ) "\n" 32 33 33 34 title: '!title' /.*/ … … 43 44 pattern_name: /[A-Z_]+/ 44 45 pattern: /.*/ 46 47 heading: '!head' /.*/ 48 { warn "[Text::FormBuilder] Header before field " . scalar(@fields) . " redefined at input text line $thisline\n" if defined $headings[@fields]; 49 $headings[@fields] = $item[2] } 45 50 46 51 field: name field_size(?) label(?) hint(?) type(?) default(?) option_list(?) validate(?)
Note: See TracChangeset
for help on using the changeset viewer.