Show
Ignore:
Timestamp:
05/27/08 04:44:08 (8 months ago)
Author:
guilhermeblanco
Message:

Finished first parts of SELECT support. Two test cases added and passing. Introduced the concept of DCTRN in queryComponent. Added concept of queryField, which validates for already defined fields in SELECT.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/query-language.txt

    r4427 r4451  
    4141RangeVariableDeclaration = identifier {"." identifier} [["AS"] IdentificationVariable] 
    4242VariableDeclaration = identifier [["AS"] IdentificationVariable] 
     43IdentificationVariable = identifier 
    4344 
    4445Join = ["LEFT" | "INNER"] "JOIN" RangeVariableDeclaration [("ON" | "WITH") ConditionalExpression] 
     
    6061Primary    = PathExpression | Atom | "(" Expression ")" | Function | AggregateExpression 
    6162 
    62 SelectExpression  = (PathExpressionEndingWithAsterisk | Expression | "(" Subselect ")" ) [["AS"] IdentificationVariable] 
     63SelectExpression  = (PathExpressionEndingWithAsterisk | Expression | "(" Subselect ")" ) [["AS"] FieldIdentificationVariable] 
    6364PathExpression = identifier {"." identifier} 
    6465PathExpressionEndingWithAsterisk = {identifier "."} "*" 
     66FieldIdentificationVariable = identifier 
    6567 
    6668AggregateExpression = ("AVG" | "MAX" | "MIN" | "SUM") "(" ["DISTINCT"] Expression ")"