Changes between Version 2 and Version 3 of Taskforces/FCS/FCS-QL


Ignore:
Timestamp:
03/30/15 08:40:48 (9 years ago)
Author:
Oliver Schonefeld
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • Taskforces/FCS/FCS-QL

    v2 v3  
    66}}}
    77{{{
    8  [1] query                ::= main-query within-part? sort-part?
     8 [1] query                ::= main-query within-part?
    99         
    1010 [2] main-query           ::= simple-query
     
    2222
    2323 [6] within-part          ::= simple-within-part
    24                             | complex-within-part        
     24                            | complex-within-part  /* REMOVE complex within */  
    2525
    2626 [7] simple-within-part   ::= "within" simple-within-scope
    2727
    28  [8]  simple-within-scope ::= "sentence"
     28 [8] simple-within-scope ::= "sentence"
    2929                            | "s"
    3030                            | "utterance"
     
    3434                            | "turn"
    3535                            | "t"
    36                             | "article"
     36                            | "text"
    3737                            | "session"         
    38 
    39  [9] compex-within-part   ::= "within" "[" expression "]"   /* TBD: allow more complex stuff? */
    40 
    41 [10] sort-part            ::= /* TBD: do we want sorting */
    4238
    4339[11] expression           ::= basic-expression
     
    5147[13] operator             ::= "="                           /* equals */
    5248                            | "!="                          /* non-equals */
    53                             | "~"                           /* TBD: fuzzy match? */
    54                             | "!~"                          /* TBD: fuzzy not? */
    5549
    5650[14] quantifier           ::= "+"                           /* one-or-more */
     
    7064                            | "l"  /* literal matching, CQP compat*/
    7165                            | "d"  /* diacritic agnostic matching, CQP compat */
    72                             /* TBD: more? */
    7366       
    74 [17] regexp               ::= string
     67[17] regexp               ::= quoted-string
    7568
    7669[18] attribute            ::= simple-attribute
     
    8578[22] identifier-char      ::= [a-zA-Z0-9\-]
    8679
    87 [23] string               ::= plain-string
    88                             | quoted-string     
    89 
    9080[24] integer              ::= [0-9]+
    91 
    92 [25] plain-string         ::= char*
    9381
    9482[26] quoted-string        ::= "'" (char | ws)* "'"  /* single-quotes */
    9583                            | """ (char | ws)* """  /* double-quotes */
    9684
    97 [27] char                 ::= <any unicode codepoint expluding whitespace codepoints>
     85[27] char                 ::= <any unicode codepoint excluding whitespace codepoints>
    9886                            | "\" escaped-char
    9987
     
    113101== Notes ==
    114102 * based on Poliqarp with inspiration from others
    115  * contains some "TBD"s (to be determined), e.g. do we want to add a sort-clause (or a meta-clause)?
    116103 * "attribute": the annotation layer to be used, e.g. "word", "lemma", "pos" or qualified "pos:stts" the supported values for this construct are beyond the grammar and need to be defined in supplementary documents
    117104 * "simple-within-scope": possible values for scope
     
    120107   * "article" | "session": something like a whole document
    121108 * {{{[27]}}} and {{{[28]}}} "any $SOMETING codepoint" are a pain to get easily done in at least ANTLR and JavaCC. Especially in combination with {{{[29]}}} :/
    122  * regex are not defined/guarded by grammar :/
     109 * regex are not defined/guarded by this grammar :/
     110 * non-continuous rule numbers are currently intended; we've already removed some. Rules will be renumbered, when grammar is fixed.