1/** 2 * Copyright (c) 2022 Huawei Device Co., Ltd. 3 * Licensed under the Apache License, Version 2.0 (the "License"); 4 * you may not use this file except in compliance with the License. 5 * You may obtain a copy of the License at 6 * 7 * http://www.apache.org/licenses/LICENSE-2.0 8 * 9 * Unless required by applicable law or agreed to in writing, software 10 * distributed under the License is distributed on an "AS IS" BASIS, 11 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 * See the License for the specific language governing permissions and 13 * limitations under the License. 14 */ 15 16syntax = "proto3"; 17package protoPanda; 18 19import "assemblyFunction.proto"; 20import "assemblyRecord.proto"; 21import "assemblyType.proto"; 22import "assemblyLiterals.proto"; 23 24message Program { 25 message RecordTable { 26 bytes key = 1; 27 Record value = 2; 28 } 29 message FunctionTable { 30 bytes key = 1; 31 Function value = 2; 32 } 33 message FunctionSynnoyms { 34 bytes key = 1; 35 repeated bytes value = 2; 36 } 37 message LiteralArrayTable { 38 bytes key = 1; 39 LiteralArray value = 2; 40 } 41 uint32 lang = 1; 42 repeated RecordTable recordTable = 2; 43 repeated FunctionTable functionTable = 3; 44 repeated FunctionSynnoyms functionSynonyms = 4; 45 repeated LiteralArrayTable literalArrayTable = 5; 46 repeated bytes strings = 6; 47 repeated Type arrayTypes = 7; 48} 49