IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
May 4, 2005, 12:09:28 PM (21 years ago)
Author:
jhoblitt
Message:

change metadata_name & metadata_end to allow comments
change statement match ordering (optimization)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/PS-IPP-Metadata-Config/lib/PS/IPP/Metadata/Config.pm

    r3840 r3843  
    11# Copyright (c) 2005  Joshua Hoblitt
    22#
    3 # $Id: Config.pm,v 1.15 2005-05-04 21:48:53 jhoblitt Exp $
     3# $Id: Config.pm,v 1.16 2005-05-04 22:09:28 jhoblitt Exp $
    44
    55package PS::IPP::Metadata::Config;
     
    130130    scalar
    131131    | vector
     132    | comment_line
     133    | typedef
     134    | metadata
     135    | typedef_declare
    132136    | multi_declare
    133     | comment_line
    134     | metadata
    135137    | time
    136     | typedef_declare
    137     | typedef
    138138    | <error:unmatched statement: $text>
    139139
     
    193193
    194194metadata:
    195     metadata_name <commit>
     195    metadata_name <commit> 
    196196    { push @scope_stack, $thisparser->{local}; $thisparser->{local} = {} }
    197197    grammar
     
    300300
    301301metadata_name:
    302     <skip:'[ \t\r]*'> name /METADATA/i "\n"
     302    <skip:'[ \t\r]*'> name /METADATA/i comment(?) "\n"
    303303        { $item{name} }
    304304   
    305305metadata_end:
    306      <skip:'[ \t\r]*'> /END/i "\n"
     306     <skip:'[ \t\r]*'> /END/i comment(?) "\n"
    307307
    308308comment:
Note: See TracChangeset for help on using the changeset viewer.