Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
O
olapy
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Labels
Merge Requests
2
Merge Requests
2
Analytics
Analytics
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Commits
Open sidebar
nexedi
olapy
Commits
d2d20736
Commit
d2d20736
authored
May 02, 2017
by
mouadh
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
parser SelectStatement class name's change
parent
7bf9cd66
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
5 additions
and
5 deletions
+5
-5
olapy/core/mdx/parser/gen_parser/mdxparser.py
olapy/core/mdx/parser/gen_parser/mdxparser.py
+1
-1
olapy/core/mdx/parser/gen_parser/models.py
olapy/core/mdx/parser/gen_parser/models.py
+1
-1
olapy/core/mdx/parser/grammar/ebnf_mdx.ebnf
olapy/core/mdx/parser/grammar/ebnf_mdx.ebnf
+1
-1
olapy/core/mdx/parser/parse.py
olapy/core/mdx/parser/parse.py
+2
-2
No files found.
olapy/core/mdx/parser/gen_parser/mdxparser.py
View file @
d2d20736
...
@@ -77,7 +77,7 @@ class MdxParserGen(Parser):
...
@@ -77,7 +77,7 @@ class MdxParserGen(Parser):
def
_MDX_statement_
(
self
):
def
_MDX_statement_
(
self
):
self
.
_select_statement_
()
self
.
_select_statement_
()
@
graken
(
'
s
electStatement'
)
@
graken
(
'
S
electStatement'
)
def
_select_statement_
(
self
):
def
_select_statement_
(
self
):
self
.
_token
(
'SELECT'
)
self
.
_token
(
'SELECT'
)
self
.
name_last_node
(
'name'
)
self
.
name_last_node
(
'name'
)
...
...
olapy/core/mdx/parser/gen_parser/models.py
View file @
d2d20736
from
__future__
import
absolute_import
,
division
,
print_function
from
__future__
import
absolute_import
,
division
,
print_function
class
selectStatement
()
:
class
SelectStatement
:
def
__init__
(
self
,
select_statement
):
def
__init__
(
self
,
select_statement
):
self
.
select_statement
=
select_statement
self
.
select_statement
=
select_statement
...
...
olapy/core/mdx/parser/grammar/ebnf_mdx.ebnf
View file @
d2d20736
...
@@ -6,7 +6,7 @@
...
@@ -6,7 +6,7 @@
MDX_statement =
MDX_statement =
select_statement;
select_statement;
select_statement::
s
electStatement = name:'SELECT' [axis_specification_columns:axis_specification]
select_statement::
S
electStatement = name:'SELECT' [axis_specification_columns:axis_specification]
[',' axis_specification_rows:axis_specification]
[',' axis_specification_rows:axis_specification]
'FROM' cube_specification:cube_specification
'FROM' cube_specification:cube_specification
['WHERE' condition_specification:condition_specification]$
['WHERE' condition_specification:condition_specification]$
...
...
olapy/core/mdx/parser/parse.py
View file @
d2d20736
...
@@ -3,7 +3,7 @@ from __future__ import absolute_import, division, print_function
...
@@ -3,7 +3,7 @@ from __future__ import absolute_import, division, print_function
from
grako.model
import
ModelBuilderSemantics
from
grako.model
import
ModelBuilderSemantics
from
.gen_parser.mdxparser
import
MdxParserGen
from
.gen_parser.mdxparser
import
MdxParserGen
from
.gen_parser.models
import
s
electStatement
from
.gen_parser.models
import
S
electStatement
class
MdxParser
:
class
MdxParser
:
...
@@ -48,7 +48,7 @@ class MdxParser:
...
@@ -48,7 +48,7 @@ class MdxParser:
:return: Tuples in the axis, from the MDX query
:return: Tuples in the axis, from the MDX query
'''
'''
model
=
MdxParserGen
(
semantics
=
ModelBuilderSemantics
(
model
=
MdxParserGen
(
semantics
=
ModelBuilderSemantics
(
types
=
[
s
electStatement
]))
types
=
[
S
electStatement
]))
ast
=
model
.
parse
(
query
,
rule_name
=
MdxParser
.
START
,
ignorecase
=
True
)
ast
=
model
.
parse
(
query
,
rule_name
=
MdxParser
.
START
,
ignorecase
=
True
)
if
axis
==
"column"
:
if
axis
==
"column"
:
if
ast
.
select_statement
.
axis_specification_columns
is
not
None
:
if
ast
.
select_statement
.
axis_specification_columns
is
not
None
:
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment