首页> 外文期刊>Software >Lexical state analyzer for JavaCC grammars
【24h】

Lexical state analyzer for JavaCC grammars

机译:用于JavaCC语法的词法状态分析器

获取原文
获取原文并翻译 | 示例
           

摘要

Lexical states in JavaCC provide a powerful mechanism to scan regular expressions in a context sensitive manner. But lexical states also make it hard to reason about the correctness of the grammar. We first categorize the related correctness issues into two classes: errors and warnings. We then extend the traditional context sensitive and a context insensitive analysis to identify errors and warnings in context-free grammars. We have implemented these analyses as a standalone tool (LSA), the first of its kind, to identify errors and warnings in JavaCC grammars. The LSA tool outputs a graph that depicts the grammar and the error transitions. Importantly, it can also generate counter example strings that can be used to establish the errors. We have used LSA to analyze a host of open-source JavaCC grammar files to good effect. Copyright (c) 2015 John Wiley & Sons, Ltd.
机译:JavaCC中的词法状态提供了一种强大的机制,可以以上下文相关的方式扫描正则表达式。但是,词汇状态也使人们难以推理语法的正确性。我们首先将相关的正确性问题分为两类:错误和警告。然后,我们扩展了传统的上下文敏感和上下文无关的分析,以识别上下文无关的语法中的错误和警告。我们已经将这些分析作为独立工具(LSA)(这是同类工具中的第一个)实施,以识别JavaCC语法中的错误和警告。 LSA工具输出一个描述语法和错误转换的图形。重要的是,它还可以生成可用于建立错误的计数器示例字符串。我们已经使用LSA分析了大量开源JavaCC语法文件,以取得良好的效果。版权所有(c)2015 John Wiley&Sons,Ltd.

著录项

相似文献

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

客服邮箱:kefu@zhangqiaokeyan.com

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

  • 服务号