next up previous
Next: Scan/Sub-Array Selection Expression Up: Formal Grammar Specifications Previous: Frequency Selection Expression

Field Selection Expression

token SQUOTE
token IDENTIFIER  of type String
token COMMA

token LPAREN
token RPAREN
token WHITE

token INT      of type String
token QSTRING  of type String
token REGEX    of type String

token COLON
token SEMICOLON

type TEN fieldstatement
type TEN indexcombexpr
type Vector<int> indexlist
type Vector<int> fieldidrange
type Vector<int> fieldidlist
type Vector<int> fieldid
type Vector<int> fieldidbounds

fieldstatement: indexcombexpr 
              | LPAREN indexcombexpr RPAREN

indexcombexpr: indexlist 

fieldid: IDENTIFIER   
       | QSTRING 
       | REGEX

fieldidrange: INT                     
            | INT TILDA INT           

fieldidbounds: LT INT                  
             | GT INT                  
             | GT INT AMPERSAND LT INT 

fieldidlist: fieldid                   
           | fieldidrange              
           | fieldidbounds             

indexlist : fieldidlist
          | indexlist COMMA fieldidlist  
          | LPAREN indexlist RPAREN



Joe McMullin 2007-06-24