// Author: Bostjan Lah // (c) Copyright, Marand, http://www.marand.com // Licensed under LGPL: http://www.gnu.org/copyleft/lesser.html // Based on AQL grammar by Ocean Informatics: http://www.openehr.org/wiki/download/attachments/2949295/EQL_v0.6.grm?version=1&modificationDate=1259650833000 grammar Aql; options { output=AST; ASTLabelType=CommonTree; backtrack=true; memoize=true; } tokens { ORDERDESC; ORDERASC; } @header { package com.marand.thinkehr.aql.antlr; import com.marand.thinkehr.aql.AqlRecognitionException; } @lexer::header{ package com.marand.thinkehr.aql.antlr; import com.marand.thinkehr.aql.AqlRecognitionException; } @members{ public void displayRecognitionError(String[] tokenNames, RecognitionException e) { throw new AqlRecognitionException(e); } } // Rule Definitions // ::= // | query : select from where? orderBy? ';'!? EOF!; //