- Timestamp:
- 12/09/15 17:49:23 (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
FCS-QL/trunk/src/main/antlr4/eu/clarin/sru/fcs/qlparser/FCSLexer.g4
r6863 r6865 7 7 */ 8 8 9 L PAREN: '(';10 R PAREN: ')';9 L_PAREN: '('; 10 R_PAREN: ')'; 11 11 L_SQUARE_BRACKET: '['; 12 12 R_SQUARE_BRACKET: ']'; … … 15 15 NOT: '!'; 16 16 FWD_SLASH: '/'; 17 L_CURLY_BRACKET: '{'; 18 R_CURLY_BRACKET: '}'; 19 Q_ONE_OR_MORE: '+'; 20 Q_ZERO_OR_MORE: '*'; 21 Q_ZERO_OR_ONE: '?'; 22 Q_COMMA: ','; 23 OPERATOR_EQ: '='; 24 OPERATOR_NE: '!='; 25 COLON: ':'; 17 26 18 OPERATOR 19 : '=' 20 | '!=' 27 REGEXP_FLAGS 28 : ( 'i' /* case-insensitive; Poliqarp/Perl compat */ 29 | 'I' /* case-sensitive; Poliqarp compat */ 30 | 'c' /* case-insensitive, CQP compat */ 31 | 'C' /* case-sensitive */ 32 | 'l' /* literal matching, CQP compat*/ 33 | 'd')+ /* diacritic agnostic matching, CQP compat */ 21 34 ; 22 23 QUANTIFIER24 : '+' /* one-or-more */25 | '*' /* zero-or-more */26 | '?' /* zero-or-one */27 | '{' INTEGER '}' /* exactly n-times */28 | '{' INTEGER? ',' INTEGER '}' /* at most */29 | '{' INTEGER ',' INTEGER? '}' /* min-max */30 ;31 35 32 36 REGEXP … … 34 38 ; 35 39 36 SIMPLE_ATTRIBUTE 37 : IDENTIFIER 38 ; 39 QUALIFIED_ATTRIBUTE 40 : IDENTIFIER ':' IDENTIFIER 41 ; 40 //SIMPLE_ATTRIBUTE 41 // : IDENTIFIER 42 // ; 43 44 //QUALIFIED_ATTRIBUTE 45 // : IDENTIFIER ':' IDENTIFIER 46 // ; 42 47 43 48 IDENTIFIER … … 70 75 | 'text' 71 76 | 'session' 72 ;73 74 REGEXP_FLAG75 : 'i' /* case-insensitive; Poliqarp/Perl compat */76 | 'I' /* case-sensitive; Poliqarp compat */77 | 'c' /* case-insensitive, CQP compat */78 | 'C' /* case-sensitive */79 | 'l' /* literal matching, CQP compat*/80 | 'd' /* diacritic agnostic matching, CQP compat */81 77 ; 82 78 … … 129 125 : WS -> skip 130 126 ; 131
Note: See TracChangeset
for help on using the changeset viewer.