首页> 外文会议>World multi-conference on systemics, cybernetics and informatics >Statically Typed Domain-Specific Language to Define Syntax Rules
【24h】

Statically Typed Domain-Specific Language to Define Syntax Rules

机译:静态键入的域名语言来定义语法规则

获取原文

摘要

This paper describes design of a domain-specific language to specify syntax rules based on Kotlin. which is a modern statically typed programming language. Typical parser generators do not analyze the action code attached in the syntax rules. If we write action code containing a trivial syntax error, they generate source code still containing the syntax error. To resolve this situation, an internal DSL to define syntax rules was designed as a subset of Kotlin. In the author's preliminary experience, productivity was improved in the design and implementation of parsers.
机译:本文介绍了一种特定于域的语言的设计,以指定基于Kotlin的语法规则。这是一种现代静态类型的编程语言。典型的解析器生成器不会分析语法规则中附加的操作代码。如果我们编写包含琐碎语法错误的操作代码,则它们会生成仍包含语法错误的源代码。要解决此问题,将设计语法规则的内部DSL被设计为Kotlin的子集。在提交人的初步经验中,解析器的设计和实施方面有所提高。

著录项

相似文献

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

客服邮箱:kefu@zhangqiaokeyan.com

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

  • 服务号