Changeset 6863 for FCS-QL


Ignore:
Timestamp:
12/01/15 16:43:21 (8 years ago)
Author:
Leif-Jöran
Message:

Moving some lexer tokens to after identifiers.

Location:
FCS-QL/trunk/src
Files:
2 added
1 edited

Legend:

Unmodified
Added
Removed
  • FCS-QL/trunk/src/main/antlr4/eu/clarin/sru/fcs/qlparser/FCSLexer.g4

    r6815 r6863  
    66 * 20150501- /ljo
    77 */
    8 
    9 SIMPLE_WITHIN_SCOPE
    10     : 'sentence'
    11     | 's'
    12     | 'utterance'
    13     | 'u'
    14     | 'paragraph'
    15     | 'p'
    16     | 'turn'
    17     | 't'
    18     | 'text'
    19     | 'session'
    20     ;
    21 
    22 WITHIN: 'within';
    238
    249LPAREN: '(';
     
    4934    ;
    5035
    51 REGEXP_FLAG
    52     : 'i'  /* case-insensitive; Poliqarp/Perl compat */
    53     | 'I'  /* case-sensitive; Poliqarp compat */
    54     | 'c'  /* case-insensitive, CQP compat */
    55     | 'C'  /* case-sensitive */
    56     | 'l'  /* literal matching, CQP compat*/
    57     | 'd'  /* diacritic agnostic matching, CQP compat */
    58     ;
    59 
    6036SIMPLE_ATTRIBUTE
    6137    : IDENTIFIER
     
    7955INTEGER
    8056    : [0-9+]
     57    ;
     58
     59WITHIN: 'within';
     60
     61SIMPLE_WITHIN_SCOPE
     62    : 'sentence'
     63    | 's'
     64    | 'utterance'
     65    | 'u'
     66    | 'paragraph'
     67    | 'p'
     68    | 'turn'
     69    | 't'
     70    | 'text'
     71    | 'session'
     72    ;
     73
     74REGEXP_FLAG
     75    : '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 */
    8181    ;
    8282
Note: See TracChangeset for help on using the changeset viewer.