Index: tools/telemetry/third_party/gsutilz/third_party/protorpc/protorpc/experimental/parser/pyprotobuf.g |
diff --git a/tools/telemetry/third_party/gsutilz/third_party/protorpc/protorpc/experimental/parser/pyprotobuf.g b/tools/telemetry/third_party/gsutilz/third_party/protorpc/protorpc/experimental/parser/pyprotobuf.g |
new file mode 100644 |
index 0000000000000000000000000000000000000000..534e1f8aa85916e9b93621b18c06d79ed0200915 |
--- /dev/null |
+++ b/tools/telemetry/third_party/gsutilz/third_party/protorpc/protorpc/experimental/parser/pyprotobuf.g |
@@ -0,0 +1,45 @@ |
+/* !/usr/bin/env python |
+ * |
+ * Copyright 2011 Google Inc. |
+ * |
+ * Licensed 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. |
+ */ |
+ |
+grammar pyprotobuf; |
+ |
+options { |
+// language=Python; |
+ output = AST; |
+ ASTLabelType = CommonTree; |
+} |
+ |
+import protobuf_lexer, protobuf; |
+ |
+// For reasons I do not understand the HIDDEN elements from the imported |
+// with their channel intact. |
+ |
+COMMENT |
+ : '//' ~('\n'|'\r')* '\r'? '\n' {$channel=HIDDEN;} |
+ | '/*' ( options {greedy=false;} : . )* '*/' {$channel=HIDDEN;} |
+ ; |
+ |
+WS : ( ' ' |
+ | '\t' |
+ | '\r' |
+ | '\n' |
+ ) {$channel=HIDDEN;} |
+ ; |
+ |
+py_proto_file |
+ : proto_file EOF^ |
+ ; |