Repository: incubator-systemml
Updated Branches:
  refs/heads/master 5db8dbc7f -> 51c4291ab


[SYSTEMML-763] Remove PyDML grammar dataIdentifier warnings during build

This removes the verbose ? (optional operator) in the PyDML rule of 
dataIdentifier to remove warnings during build.

Closes #187.


Project: http://git-wip-us.apache.org/repos/asf/incubator-systemml/repo
Commit: 
http://git-wip-us.apache.org/repos/asf/incubator-systemml/commit/51c4291a
Tree: http://git-wip-us.apache.org/repos/asf/incubator-systemml/tree/51c4291a
Diff: http://git-wip-us.apache.org/repos/asf/incubator-systemml/diff/51c4291a

Branch: refs/heads/master
Commit: 51c4291abf423998d9d54c96efc6381b30b8646c
Parents: 5db8dbc
Author: Tatsuya.Nishiyama <[email protected]>
Authored: Fri Jul 8 08:24:07 2016 -0700
Committer: Mike Dusenberry <[email protected]>
Committed: Fri Jul 8 08:24:07 2016 -0700

----------------------------------------------------------------------
 src/main/java/org/apache/sysml/parser/pydml/Pydml.g4 | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-systemml/blob/51c4291a/src/main/java/org/apache/sysml/parser/pydml/Pydml.g4
----------------------------------------------------------------------
diff --git a/src/main/java/org/apache/sysml/parser/pydml/Pydml.g4 
b/src/main/java/org/apache/sysml/parser/pydml/Pydml.g4
index 47280ed..f07f854 100644
--- a/src/main/java/org/apache/sysml/parser/pydml/Pydml.g4
+++ b/src/main/java/org/apache/sysml/parser/pydml/Pydml.g4
@@ -229,7 +229,7 @@ dataIdentifier returns [ 
org.apache.sysml.parser.common.ExpressionInfo dataInfo
 } :
     // ------------------------------------------
     // IndexedIdentifier -- allows implicit lower and upper bounds
-    name=ID OPEN_BRACK ( (rowLower=expression)? (rowImplicitSlice=':' 
(rowUpper=expression)?)? )? (',' (((colLower=expression)? (colImplicitSlice=':' 
(colUpper=expression)?)?)?)?)? CLOSE_BRACK # IndexedExpression
+    name=ID OPEN_BRACK (rowLower=expression)? (rowImplicitSlice=':' 
(rowUpper=expression)?)?  (',' (colLower=expression)? (colImplicitSlice=':' 
(colUpper=expression)?)?)? CLOSE_BRACK # IndexedExpression
     // ------------------------------------------
     | ID                                            # 
SimpleDataIdentifierExpression
     | COMMANDLINE_NAMED_ID                          # 
CommandlineParamExpression

Reply via email to