设计 任务书 文档 开题 答辩 说明书 格式 模板 外文 翻译 范文 资料 作品 文献 课程 实习 指导 调研 下载 网络教育 计算机 网站 网页 小程序 商城 购物 订餐 电影 安卓 Android Html Html5 SSM SSH Python 爬虫 大数据 管理系统 图书 校园网 考试 选题 网络安全 推荐系统 机械 模具 夹具 自动化 数控 车床 汽车 故障 诊断 电机 建模 机械手 去壳机 千斤顶 变速器 减速器 图纸 电气 变电站 电子 Stm32 单片机 物联网 监控 密码锁 Plc 组态 控制 智能 Matlab 土木 建筑 结构 框架 教学楼 住宅楼 造价 施工 办公楼 给水 排水 桥梁 刚构桥 水利 重力坝 水库 采矿 环境 化工 固废 工厂 视觉传达 室内设计 产品设计 电子商务 物流 盈利 案例 分析 评估 报告 营销 报销 会计
 首 页 机械毕业设计 电子电气毕业设计 计算机毕业设计 土木工程毕业设计 视觉传达毕业设计 理工论文 文科论文 毕设资料 帮助中心 设计流程 
垫片
您现在所在的位置:首页 >>计算机毕业设计 >> 文章内容
                 
垫片
   我们提供全套毕业设计和毕业论文服务,联系微信号:biyezuopin QQ:2922748026   
基于pyparsing的tex文件处理 毕业论文+任务书+开题报告+文献综述+外文翻译及原文+评阅表+Python代码
文章来源:www.biyezuopin.vip   发布者:毕业作品网站  

基于pyparsing的tex文件处理

【摘要】  Tex是一种在数学、物理学和计算机科学界十分流行的排版系统,而python是一种解释型计算机程序设计语言。Pyparsing是纯python编写的,易于使用。本文用python的解析工具pyparsing对tex 文件进行解析。主要是解析数学公式。首先从数学类tex文件中总结出tex数学公式的上下文无关文法。然后用pyparsing 写出解析程序。利用pyparsing通过语法分析,可以提取tex文件的主要内容。论文运用经验与逻辑结合的分析方法。逻辑是指tex文件固定的文法;经验主要对tex文件个例的分析,总结作者的编写习惯,提出一些化繁为简的方案。全面解析tex文件有些困难,主要是解析数学表达式。最后得出结论。因此要用pyparsing设计出针对tex文件的解析语法。解析结果可以表示tex中数学公式的逻辑结构。这对学术研究非常有价值。

【关键词】上下文无关文法, pyparsing模块, tex文件解析,正则表达式

Tex file processing based on pyparsing

【Abstract】Tex is a very popular typesetting system in the fields of mathematics, physics and computer science, while python is an interpreted computer programming language. Pyparsing is written in pure python that is easy to use. This article mainly analyzes the tex documents with the pyparsing, especially the mathematical formula. Firstly, the context free grammar of tex mathematical formula is summed up from the tex documents. And we write the parsing program by pyparsing. With syntax parser of pyparsing we can extract the main contents of the tex files. This article employs the analyzing method of combining experience and logic. Logic refers to the Tex file fixed grammar; experience refers to the case analysis of tex files, considering the author's writing habits, simplifying the programming. A completed analysis of the whole tex file is difficult, hence we analyze mathematical expressions mianly. Finally we come to the conclusion. So we design an analytical syntax for the tex file with pyparsing. Parsing results can be expressed in the logic structure of mathematical formulas in tex file. This is very valuable for academic research.

【Key Words】 context free grammar,pyparsing module,tex file parsing,regular expression


目 录

绪论

1.1 研究意义

1.2 研究现状

1.2.1 python发展现状

1.2.2 Tex文件处理的现状

1.3 研究内容

1.3.1 研究的重点和难点

1.3.2 拟解决的关键问题

1.3.3 研究的方法及措施

1.3.4 成果

2 理论基础

2.1 Python特点与基本语法

2.1.1代码块与缩进

2.1.2控制语句

2.1.3数据类型和运算

2.1.4函数

2.1.5其他

2.2 形式文法基本原理

2.3 数学类tex文件基本内容

2.4 数学公式文法

3 pyparsing 程序实现

3.1 pyparsing解析器设计原理

3.2 实验

结 论

参考文献

附 录

致 谢









  全套毕业设计论文现成成品资料请咨询微信号:biyezuopin QQ:2922748026     返回首页 如转载请注明来源于www.biyezuopin.vip  

                 

打印本页 | 关闭窗口
本类最新文章
基于JSP+SSM+MySQL的 基于JSP+SSM的图书借阅管理 基于JSP+SSH的网上宠物交易
基于VUE+SSM+MySQL的 基于Cisco Packet T 基于eNSP的某大学校园网络规划
| 关于我们 | 友情链接 | 毕业设计招聘 |

Email:biyeshejiba@163.com 微信号:biyezuopin QQ:2922748026  
本站毕业设计毕业论文资料均属原创者所有,仅供学习交流之用,请勿转载并做其他非法用途.如有侵犯您的版权有损您的利益,请联系我们会立即改正或删除有关内容!