- Timestamp:
- 12/15/15 12:53:16 (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
FCS-QL/trunk/src/main/antlr4/eu/clarin/sru/fcs/qlparser/FCSParser.g4
r6865 r6868 4 4 * Parser for FCS Core FCS-QL version 2.0 5 5 * 20150501- /ljo 6 */ 6 */ 7 7 8 query 8 9 : main_query (WITHIN within_part)? EOF 9 10 ; 10 11 11 /* for debugging */12 parse13 : (t=.14 {System.out.printf("text: %-7s type: %s \n",15 $t.text, tokenNames[$t.type]);}16 )*17 ;18 19 12 20 13 main_query 21 : query_simple /* #simpleQuery */22 | query_group /* #queryGroup */23 | query_sequence /* #querySequence */24 | query_disjunction /* #queryDisjunction */14 : query_simple 15 | query_group 16 | query_sequence 17 | query_disjunction 25 18 ; 26 19 … … 57 50 58 51 query_implicit 59 : flagged_regexp52 : regexp 60 53 ; 61 54 … … 67 60 68 61 within_part 69 : simple_within_part62 : within_part_simple 70 63 ; 71 64 72 65 73 simple_within_part 66 within_part_simple 74 67 : SIMPLE_WITHIN_SCOPE 75 68 ; … … 109 102 110 103 expression_basic 111 : attribute (OPERATOR_EQ | OPERATOR_NE) flagged_regexp104 : attribute (OPERATOR_EQ | OPERATOR_NE) regexp 112 105 ; 106 113 107 114 108 attribute … … 116 110 ; 117 111 112 118 113 qualifier 119 114 : (IDENTIFIER | WITHIN | SIMPLE_WITHIN_SCOPE | REGEXP_FLAGS) 120 115 ; 116 121 117 122 118 identifier … … 124 120 ; 125 121 126 flagged_regexp 127 : REGEXP (FWD_SLASH REGEXP_FLAGS)? 122 123 regexp 124 : regexp_pattern (FWD_SLASH regexp_flag)? 128 125 ; 126 127 128 regexp_pattern 129 : REGEXP 130 ; 131 132 133 regexp_flag 134 : REGEXP_FLAGS 135 ;
Note: See TracChangeset
for help on using the changeset viewer.