计算机科学 > 形式语言与自动机理论
[提交于 2013年8月14日]
标题:Lexical State Analyzer
查看原文 PDF 中文 PDF (下批处理) EasyResearch 阅读摘要:Lexical states provide a powerful mechanism to scan regular expressions in a context sensitive manner. At the same time, 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, and then present a context sensitive and a context insensitive analysis to identify errors and warnings in context-free-grammars (CFGs). We also present a comparative study of these analyses. A standalone tool (LSA) has also been implemented by us that can identify errors and warnings in JavaCC grammars. The LSA tool outputs a graph that depicts the grammar and the error transitions. It can also generates 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.
提交历史
来自:Kartik Gupta[v1] 2013年8月14日 星期三 15:36:23 UTC