diff --git a/src/org/olap4j/mdx/parser/impl/DefaultMdxParser.cup b/src/org/olap4j/mdx/parser/impl/DefaultMdxParser.cup index b55a39a..19af14b 100644 --- a/src/org/olap4j/mdx/parser/impl/DefaultMdxParser.cup +++ b/src/org/olap4j/mdx/parser/impl/DefaultMdxParser.cup @@ -4,7 +4,7 @@ // Agreement, available at the following URL: // http://www.opensource.org/licenses/cpl.html. // Copyright (C) 1999-2002 Kana Software, Inc. -// Copyright (C) 2002-2006 Julian Hyde and others. +// Copyright (C) 2002-2008 Julian Hyde and others. // All Rights Reserved. // You must accept the terms of that agreement to use this software. */ @@ -210,7 +210,7 @@ parser code {: public void unrecovered_syntax_error(Symbol cur_token) throws java.lang.Exception { - report_fatal_error( "Couldn't repair and continue parse", cur_token); + report_fatal_error("Couldn't repair and continue parse", cur_token); } /** @@ -1048,12 +1048,24 @@ else_clause_opt ::= // | // "IS" is not a comp_op because of conflict with " IS EMPTY" comp_op ::= - EQ {: RESULT = "="; :} - | NE {: RESULT = "<>"; :} - | LT {: RESULT = "<"; :} - | GT {: RESULT = ">"; :} - | LE {: RESULT = "<="; :} - | GE {: RESULT = ">="; :} + EQ {: + RESULT = "="; + :} + | NE {: + RESULT = "<>"; + :} + | LT {: + RESULT = "<"; + :} + | GT {: + RESULT = ">"; + :} + | LE {: + RESULT = "<="; + :} + | GE {: + RESULT = ">="; + :} ; // // ::= = @@ -1257,7 +1269,9 @@ exp_list ::= // jhyde: The above is wrong... you can omit 'WHERE'. statement ::= select_statement - | _VALUE_EXPRESSION value_expression:e {: RESULT = (ParseTreeNode) e; :} + | _VALUE_EXPRESSION value_expression:e {: + RESULT = (ParseTreeNode) e; + :} ; select_statement ::= @@ -1296,7 +1310,9 @@ axis_specification_list ::= ; where_clause_opt ::= /* empty */ - | WHERE filter_specification:s {: RESULT = s; :}; + | WHERE filter_specification:s {: + RESULT = s; + :}; cell_props_opt ::= /* empty */ {: RESULT = new LinkedList(); @@ -1441,8 +1457,12 @@ axis_specification ::= ; non_empty_opt ::= - /* empty */ {: RESULT = Boolean.FALSE; :} - | NON EMPTY {: RESULT = Boolean.TRUE; :} + /* empty */ {: + RESULT = Boolean.FALSE; + :} + | NON EMPTY {: + RESULT = Boolean.TRUE; + :} ; dim_props_opt ::= /* empty */ @@ -1456,17 +1476,23 @@ dim_props_opt ::= // | SECTIONS // | AXIS() axis_name ::= - identifier:i {: RESULT = i.getName(); :} + identifier:i {: + RESULT = i.getName(); + :} ; axis_number ::= NUMBER - | AXIS LPAREN NUMBER:n RPAREN {: RESULT = n; :} + | AXIS LPAREN NUMBER:n RPAREN {: + RESULT = n; + :} ; // // ::= [DIMENSION] PROPERTIES [, ...] dim_props ::= - dimension_opt PROPERTIES property_list:pl {: RESULT = pl; :} + dimension_opt PROPERTIES property_list:pl {: + RESULT = pl; + :} ; dimension_opt ::= /* empty */ @@ -1498,7 +1524,9 @@ filter_specification ::= // // ::= [CELL] PROPERTIES [, ...] cell_props ::= - cell_opt PROPERTIES cell_property_list:p1 {: RESULT = p1; :} + cell_opt PROPERTIES cell_property_list:p1 {: + RESULT = p1; + :} ; cell_opt ::= /* empty */