首页> 外文会议>IEEE/ACM International Conference on Automated Software Engineering >Parsimony: An IDE for Example-Guided Synthesis of Lexers and Parsers
【24h】

Parsimony: An IDE for Example-Guided Synthesis of Lexers and Parsers

机译:判断:一个例子,用于引导lexers和解析器的合成

获取原文

摘要

We present Parsimony, a programming-by-example development environment for synthesizing lexers and parsers by example. Parsimony provides a graphical interface in which the user presents examples simply by selecting and labeling sample text in a text editor. An underlying synthesis engine then constructs syntactic rules to solve the system of constraints induced by the supplied examples. Parsimony is more expressive and usable than prior programming-by-example systems for parsers in several ways: Parsimony can (1) synthesize lexer rules in addition to productions, (2) solve for much larger constraint systems over multiple examples, rather than handling examples one-at-a-time, and (3) infer much more complex sets of productions, such as entire algebraic expression grammars, by detecting instances of well-known grammar design patterns. The results of a controlled user study across 18 participants show that users are able to perform lexing and parsing tasks faster and with fewer mistakes when using Parsimony as compared to a traditional parsing workflow.
机译:我们通过示例呈现逐个示例开发环境,用于将Lexers和解析器合成。 Parsimony提供了一种图形界面,其中用户只是通过在文本编辑器中选择和标记示例文本来显示示例。然后,底层合成引擎构建句法规则,以解决所提供的实施例引起的约束系统。 Parsimony比以前的解析器的先前编程和用于解析器的先前编程和可用的分析系统:Parsimony可以(1)除了制作外,(2)在多个示例中解决大量约束系统,而不是处理示例,而不是处理Lexer规则一次性,通过检测着名的语法设计模式的情况,推断出更复杂的制作,例如整个代数表达语法。跨18名参与者的受控用户学习的结果表明,与传统解析工作流程相比,用户能够更快地执行LEXING和解析任务,并且在使用定义时更少的错误。

著录项

相似文献

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

客服邮箱:kefu@zhangqiaokeyan.com

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

  • 服务号