首页> 外国专利> Contraction aware parsing system for domain-specific languages

Contraction aware parsing system for domain-specific languages

机译:用于特定域的语言的收缩意识解析系统

摘要

Aspects of the present invention disclose a method, computer program product, and system for parsing a domain-specific language (DSL) statement. The method includes one or more processors accessing a DSL statement that includes contracted phrases. The method further includes one or more processors identifying one or more contracted phrases in the DSL statement utilizing an annotated domain vocabulary for a DSL associated with the DSL statement and grammar rules for the DSL. The method further includes one or more processors determining expanded phrases corresponding to the identified one or more contracted phrases based on the annotated domain vocabulary and the grammar rules. The method further includes one or more processors creating an expanded abstract syntax tree (AST) that is representative of the DSL statement with the determined expanded phrases replacing the identified one or more contracted phrases.
机译:本发明的各方面公开了一种用于解析特定域语言(DSL)语句的方法,计算机程序产品和系统。该方法包括访问包括合同短语的DSL语句的一个或多个处理器。该方法还包括一个或多个处理器,其利用与DSL语句和DSL的语法规则相关联的DSL语句中的一个或多个收缩短语。该方法还包括一个或多个处理器,该处理器确定基于注释的域词汇和语法规则的识别的一个或多个收缩短语对应的扩展短语。该方法还包括一个或多个处理器,该处理器创建一个扩展的抽象语法树(AST),其代表DSL语句,其中所确定的展开短语替换所识别的一个或多个收缩短语。

著录项

相似文献

  • 专利
  • 外文文献
  • 中文文献
获取专利

客服邮箱:kefu@zhangqiaokeyan.com

京公网安备:11010802029741号 ICP备案号:京ICP备15016152号-6 六维联合信息科技 (北京) 有限公司©版权所有
  • 客服微信

  • 服务号