You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@systemml.apache.org by de...@apache.org on 2016/02/03 08:06:08 UTC
incubator-systemml git commit: Add Apache license to header sections
of g4 files
Repository: incubator-systemml
Updated Branches:
refs/heads/master 290359f96 -> 310d65c73
Add Apache license to header sections of g4 files
Adds Apache license to antlr-generated Java files.
Closes #62.
Project: http://git-wip-us.apache.org/repos/asf/incubator-systemml/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-systemml/commit/310d65c7
Tree: http://git-wip-us.apache.org/repos/asf/incubator-systemml/tree/310d65c7
Diff: http://git-wip-us.apache.org/repos/asf/incubator-systemml/diff/310d65c7
Branch: refs/heads/master
Commit: 310d65c733912bc97fbd5d0fd860f22c1f49afa3
Parents: 290359f
Author: Deron Eriksson <de...@us.ibm.com>
Authored: Tue Feb 2 23:02:46 2016 -0800
Committer: Deron Eriksson <de...@us.ibm.com>
Committed: Tue Feb 2 23:02:46 2016 -0800
----------------------------------------------------------------------
.../java/org/apache/sysml/parser/dml/Dml.g4 | 20 +++++++++++++++++--
.../java/org/apache/sysml/parser/pydml/Pydml.g4 | 21 +++++++++++++++++---
2 files changed, 36 insertions(+), 5 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/incubator-systemml/blob/310d65c7/src/main/java/org/apache/sysml/parser/dml/Dml.g4
----------------------------------------------------------------------
diff --git a/src/main/java/org/apache/sysml/parser/dml/Dml.g4 b/src/main/java/org/apache/sysml/parser/dml/Dml.g4
index bada11e..0c4e62c 100644
--- a/src/main/java/org/apache/sysml/parser/dml/Dml.g4
+++ b/src/main/java/org/apache/sysml/parser/dml/Dml.g4
@@ -21,8 +21,24 @@ grammar Dml;
@header
{
- // Commenting the package name and explicitly passing it in build.xml to maintain compatibility with maven plugin
- // package org.apache.sysml.parser.dml;
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
}
// DML Program is a list of expression
http://git-wip-us.apache.org/repos/asf/incubator-systemml/blob/310d65c7/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 425859c..63b9835 100644
--- a/src/main/java/org/apache/sysml/parser/pydml/Pydml.g4
+++ b/src/main/java/org/apache/sysml/parser/pydml/Pydml.g4
@@ -21,9 +21,24 @@ grammar Pydml;
@header
{
- // package org.apache.sysml.parser.pydml;
- //import org.apache.sysml.parser.dml.StatementInfo;
- //import org.apache.sysml.parser.dml.ExpressionInfo;
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
}
// This antlr grammar is based on Python 3.3 language reference: https://docs.python.org/3.3/reference/grammar.html