IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 10190


Ignore:
Timestamp:
Nov 24, 2006, 4:29:36 PM (19 years ago)
Author:
jhoblitt
Message:

change type & vtype into regex alternations instead of rule alternations

Location:
trunk/PS-IPP-Metadata-Config
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/PS-IPP-Metadata-Config/Changes

    r10189 r10190  
    99    - merge empty metdata case into main metadata production
    1010    - error check vector
     11    - change type & vtype into regex alternations instead of rule alternations
    1112
    12130.09 Thu Oct 26 16:16:28 HST 2006
  • trunk/PS-IPP-Metadata-Config/config_grammar.txt

    r10189 r10190  
    11# Copyright (c) 2005  Joshua Hoblitt
    22#
    3 # $Id: config_grammar.txt,v 1.11 2006-11-25 01:53:26 jhoblitt Exp $
     3# $Id: config_grammar.txt,v 1.12 2006-11-25 02:29:05 jhoblitt Exp $
    44
    55{
     
    2424statement:
    2525    scalar
    26     | vector
    2726    | comment_line
     27    | metadata
    2828    | typedef
    29     | metadata
    3029    | typedef_declare
    3130    | multi_declare
     31    | vector
    3232    | <error:unmatched statement: $text>
    3333
     
    223223# optimization.
    224224type:
    225     'STR'
    226     | 'STRING'
    227     | vtype
    228     | 'UTC'
    229     | 'UT1'
    230     | 'TAI'
    231     | 'TT'
     225    vtype
     226    | /(STR
     227    | STRING
     228    | UTC
     229    | UT1
     230    | TAI
     231    | TT)/x
    232232
    233233vtype:
    234     'S8'
    235     | 'S16'
    236     | 'S32'
    237     | 'S64'
    238     | 'U8'
    239     | 'U16'
    240     | 'U32'
    241     | 'U64'
    242     | 'F32'
    243     | 'F64'
    244     | 'C32'
    245     | 'C64'
    246     | 'BOOL'
     234    /(S8
     235    | S16
     236    | S32
     237    | S64
     238    | U8
     239    | U16
     240    | U32
     241    | U64
     242    | F32
     243    | F64
     244    | C32
     245    | C64
     246    | BOOL)/x
    247247
    248248S8: int
Note: See TracChangeset for help on using the changeset viewer.