首页 | 本学科首页   官方微博 | 高级检索  
     

基于Spirit解析器框架的DXF文件解析技术
引用本文:孟凡辉,王宏智,吴旭. 基于Spirit解析器框架的DXF文件解析技术[J]. 电子工业专用设备, 2012, 41(11): 44-49
作者姓名:孟凡辉  王宏智  吴旭
作者单位:中国电子科技集团公司第四十五研究所,北京,100176
基金项目:基金项目:科技部863计划
摘    要:提出了一种有效解析DXF文件的新方法,新颖之处在于包含了从特定领域建模过程获取的模型中自动生成代码思想。它基于开源的Boost Spirit解析器框架,举例阐释了本技术。结果表明,与通常的纯手工编码方法相比,其代码倾向于更加简洁、高效和优雅。本技术可广泛应用于其它CAD/CAM数据文件格式的解析处理。

关 键 词:DXF解析  Spirit解析器  特定领域建模

A New Technique for DXF File Parsing Based on Spirit Parser Framework
MENG Fanhui,WANG Hongzhi,WU Xu. A New Technique for DXF File Parsing Based on Spirit Parser Framework[J]. Equipment for Electronic Products Marufacturing, 2012, 41(11): 44-49
Authors:MENG Fanhui  WANG Hongzhi  WU Xu
Affiliation:(The 45th Research Institute of CETC,Beijing 100176,China)
Abstract:In this paper,we present a new method to parse DXF files,which features the idea of auto code generation from the DSM models.It's based on the open-source Boost spirit parser framework.A coding sample has been used to demonstrate the proposed technique.Results show that compared with classical pure-manual coding techniques it will make program codes incline to more simple,efficient and elegant.Moreover,this technique can be applied extensively to parsing of many other CAD/CAM files.
Keywords:DXF Parsing  Boost spirit paser  DSM(Domain-Specific Modeling
本文献已被 CNKI 万方数据 等数据库收录!
设为首页 | 免责声明 | 关于勤云 | 加入收藏

Copyright©北京勤云科技发展有限公司  京ICP备09084417号