xed/pysrc/encutil.py
Mark Charney ffd94e705c initial commit
Change-Id: I32a6db1a17988d9df8ff69aa1672dbf08b108e8a
2016-12-16 16:09:38 -05:00

44 lines
1.4 KiB
Python
Executable File

#BEGIN_LEGAL
#
#Copyright (c) 2016 Intel Corporation
#
# 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.
#
#END_LEGAL
import ildutil
"""
dictionary of string to string.
used to provided a layer of abstraction
"""
enc_strings = {'key_str':'key',
'hidx_str':'hidx',
'key_type':'xed_uint64_t',
'hidx_type':'xed_uint64_t',
'obj_str':'xes',
'obj_type':'xed_encoder_request_t',
'nt_prefix':'xed_encode_nonterminal',
'ntluf_prefix':'xed_encode_ntluf',
'fb_type':'xed_int8_t',
'nt_fptr':'xed_nt_func_ptr_t',
'ntluf_fptr':'xed_ntluf_func_ptr_t',
'obj_const': '',
'lu_namespace':'enc',
'emit_util_function':'xed_encoder_request_encode_emit',
'static':False
}
enc_strings.update(ildutil.xed_strings)