首页> 外国专利> 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的语法规则来识别DSL语句中的一个或多个压缩短语。该方法进一步包括一个或多个处理器,基于带注释的领域词汇和语法规则来确定与所标识的一个或多个紧缩短语相对应的扩展短语。该方法进一步包括一个或多个处理器创建扩展的抽象语法树(AST),该扩展的抽象语法树(AST)表示DSL语句,其中所确定的扩展短语替换所标识的一个或多个协定短语。

著录项

相似文献

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

客服邮箱:kefu@zhangqiaokeyan.com

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

  • 服务号