a2lparser:Python A2L解析器和XML导出器-源码

上传者: 42134117 | 上传时间: 2021-09-09 14:04:04 | 文件大小: 141KB | 文件类型: ZIP
Python A2L解析器 A2L文件是描述文件,它定义ECU(电气控制单元)的实现。 它是一个格式化的文本文件,其中包含测量定义,计算方法,事件和各种配置信息。 A2L文件允许XCP主设备通过XCP连接与XCP从设备进行通信。 它用于获取和刺激数据以及执行其他功能。 通常,人们只需要通过特定的地址,特定的计算方法或一种简单的方法来分析多个文件中的大型数据集即可进行测量。 通过此解析器,可以将A2L文件解析为抽象语法树,可以在内存中对其进行访问或修改,也可以将其导出为更简单的XML格式。 重要提示:目前仅支持Python 2! 基本用法 要解析A2L文件并生成相应的XML文件,请使用以下命令: python a2lparser.py [file.a2l] --xml 您也可以将多个文件放在一起。 例如,如果您有一个目录a2l_files其中包含以*.a2l结尾的A2L文件, *.

文件下载

资源详情

[{"title":"( 68 个子文件 141KB ) a2lparser:Python A2L解析器和XML导出器-源码","children":[{"title":"a2lparser-main","children":[{"title":"logger","children":[{"title":"__init__.py <span style='color:#111;'> 20B </span>","children":null,"spread":false},{"title":"logger.py <span style='color:#111;'> 1.61KB </span>","children":null,"spread":false}],"spread":true},{"title":"__init__.py <span style='color:#111;'> 0B </span>","children":null,"spread":false},{"title":"a2l","children":[{"title":"xml","children":[{"title":"a2l_xml.py <span style='color:#111;'> 4.31KB </span>","children":null,"spread":false},{"title":"__init__.py <span style='color:#111;'> 20B </span>","children":null,"spread":false}],"spread":true},{"title":"parser.py <span style='color:#111;'> 4.33KB </span>","children":null,"spread":false},{"title":"__init__.py <span style='color:#111;'> 41B </span>","children":null,"spread":false},{"title":"ast","children":[{"title":"__init__.py <span style='color:#111;'> 37B </span>","children":null,"spread":false},{"title":"a2l_ast.py <span style='color:#111;'> 94.75KB </span>","children":null,"spread":false},{"title":"ast_generator.py <span style='color:#111;'> 6.38KB </span>","children":null,"spread":false}],"spread":true},{"title":"config","children":[{"title":"config.py <span style='color:#111;'> 13.80KB </span>","children":null,"spread":false},{"title":"__init__.py <span style='color:#111;'> 37B </span>","children":null,"spread":false},{"title":"config_builder.py <span style='color:#111;'> 489B </span>","children":null,"spread":false}],"spread":true},{"title":"a2l_yacc.py <span style='color:#111;'> 121.98KB </span>","children":null,"spread":false},{"title":"a2l_lex.py <span style='color:#111;'> 11.29KB </span>","children":null,"spread":false}],"spread":true},{"title":"LICENSE <span style='color:#111;'> 34.33KB </span>","children":null,"spread":false},{"title":"README.md <span style='color:#111;'> 6.40KB </span>","children":null,"spread":false},{"title":"gen","children":[{"title":".gitignore <span style='color:#111;'> 130B </span>","children":null,"spread":false}],"spread":true},{"title":"libs","children":[{"title":"__init__.py <span style='color:#111;'> 0B </span>","children":null,"spread":false},{"title":"ply","children":[{"title":"cpp.py <span style='color:#111;'> 32.27KB </span>","children":null,"spread":false},{"title":"__init__.py <span style='color:#111;'> 82B </span>","children":null,"spread":false},{"title":"LICENSE <span style='color:#111;'> 217B </span>","children":null,"spread":false},{"title":"yacc.py <span style='color:#111;'> 125.48KB </span>","children":null,"spread":false},{"title":"lex.py <span style='color:#111;'> 39.78KB </span>","children":null,"spread":false},{"title":"ctokens.py <span style='color:#111;'> 3.10KB </span>","children":null,"spread":false}],"spread":true}],"spread":true},{"title":"tests","children":[{"title":"testhandler.py <span style='color:#111;'> 5.34KB </span>","children":null,"spread":false},{"title":"testcases","children":[{"title":"test_xml_escape.py <span style='color:#111;'> 130B </span>","children":null,"spread":false},{"title":"test_calibration_handle.py <span style='color:#111;'> 1.58KB </span>","children":null,"spread":false},{"title":"test_compu_tab.py <span style='color:#111;'> 1.84KB </span>","children":null,"spread":false},{"title":"test_var_criterion.py <span style='color:#111;'> 1.52KB </span>","children":null,"spread":false},{"title":"test_function_list.py <span style='color:#111;'> 1.26KB </span>","children":null,"spread":false},{"title":"test_frame.py <span style='color:#111;'> 1.90KB </span>","children":null,"spread":false},{"title":"test_characteristic.py <span style='color:#111;'> 11.02KB </span>","children":null,"spread":false},{"title":"test_bit_operation.py <span style='color:#111;'> 1.34KB </span>","children":null,"spread":false},{"title":"test_compu_method.py <span style='color:#111;'> 2.59KB </span>","children":null,"spread":false},{"title":"test_memory_segment.py <span style='color:#111;'> 2.13KB </span>","children":null,"spread":false},{"title":"test_module.py <span style='color:#111;'> 14.30KB </span>","children":null,"spread":false},{"title":"test_unit.py <span style='color:#111;'> 2.18KB </span>","children":null,"spread":false},{"title":"test_variant_coding.py <span style='color:#111;'> 3.93KB </span>","children":null,"spread":false},{"title":"test_header.py <span style='color:#111;'> 1.23KB </span>","children":null,"spread":false},{"title":"test_error_handling.py <span style='color:#111;'> 1.65KB </span>","children":null,"spread":false},{"title":"test_calibration_method.py <span style='color:#111;'> 2.76KB </span>","children":null,"spread":false},{"title":"test_string_handling.py <span style='color:#111;'> 1.38KB </span>","children":null,"spread":false},{"title":"__init__.py <span style='color:#111;'> 881B </span>","children":null,"spread":false},{"title":"test_group.py <span style='color:#111;'> 3.67KB </span>","children":null,"spread":false},{"title":"test_axis_pts.py <span style='color:#111;'> 6.13KB </span>","children":null,"spread":false},{"title":"test_if_data.py <span style='color:#111;'> 4.99KB </span>","children":null,"spread":false},{"title":"test_axis_descr.py <span style='color:#111;'> 5.11KB </span>","children":null,"spread":false},{"title":"test_measurement.py <span style='color:#111;'> 5.27KB </span>","children":null,"spread":false},{"title":"test_compu_vtab_range.py <span style='color:#111;'> 1.69KB </span>","children":null,"spread":false},{"title":"test_user_rights.py <span style='color:#111;'> 1.39KB </span>","children":null,"spread":false},{"title":"test_annotation.py <span style='color:#111;'> 1.52KB </span>","children":null,"spread":false},{"title":"test_logger.py <span style='color:#111;'> 817B </span>","children":null,"spread":false},{"title":"test_function.py <span style='color:#111;'> 4.57KB </span>","children":null,"spread":false},{"title":"test_record_layout.py <span style='color:#111;'> 10.73KB </span>","children":null,"spread":false},{"title":"test_nested_comment.py <span style='color:#111;'> 139B </span>","children":null,"spread":false},{"title":"test_var_characteristic.py <span style='color:#111;'> 1.56KB </span>","children":null,"spread":false},{"title":"test_var_forbidden_comb.py <span style='color:#111;'> 1.32KB </span>","children":null,"spread":false},{"title":"test_encoding.py <span style='color:#111;'> 322B </span>","children":null,"spread":false},{"title":"test_mod_common.py <span style='color:#111;'> 1.80KB </span>","children":null,"spread":false},{"title":"test_mod_par.py <span style='color:#111;'> 7.06KB </span>","children":null,"spread":false},{"title":"test_memory_layout.py <span style='color:#111;'> 1.82KB </span>","children":null,"spread":false},{"title":"test_compu_vtab.py <span style='color:#111;'> 1.83KB </span>","children":null,"spread":false}],"spread":false},{"title":"__init__.py <span style='color:#111;'> 0B </span>","children":null,"spread":false},{"title":"testsuite.py <span style='color:#111;'> 3.74KB </span>","children":null,"spread":false}],"spread":true},{"title":".gitignore <span style='color:#111;'> 33B </span>","children":null,"spread":false},{"title":"a2lparser.py <span style='color:#111;'> 2.54KB </span>","children":null,"spread":false},{"title":"A2L_ASAM.cfg <span style='color:#111;'> 11.14KB </span>","children":null,"spread":false}],"spread":false}],"spread":true}]

评论信息

免责申明

【只为小站】的资源来自网友分享,仅供学习研究,请务必在下载后24小时内给予删除,不得用于其他任何用途,否则后果自负。基于互联网的特殊性,【只为小站】 无法对用户传输的作品、信息、内容的权属或合法性、合规性、真实性、科学性、完整权、有效性等进行实质审查;无论 【只为小站】 经营者是否已进行审查,用户均应自行承担因其传输的作品、信息、内容而可能或已经产生的侵权或权属纠纷等法律责任。
本站所有资源不代表本站的观点或立场,基于网友分享,根据中国法律《信息网络传播权保护条例》第二十二条之规定,若资源存在侵权或相关问题请联系本站客服人员,zhiweidada#qq.com,请把#换成@,本站将给予最大的支持与配合,做到及时反馈和处理。关于更多版权及免责申明参见 版权及免责申明