Header menu link for other important links
X
Lexical state analyzer for JavaCC grammars
Published in John Wiley and Sons Ltd
2016
Volume: 46
   
Issue: 6
Pages: 751 - 765
Abstract
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 © 2015 John Wiley & Sons, Ltd.
About the journal
JournalData powered by TypesetSoftware - Practice and Experience
PublisherData powered by TypesetJohn Wiley and Sons Ltd
ISSN00380644
Open AccessNo
Concepts (11)
  •  related image
    Errors
  •  related image
    Program compilers
  •  related image
    Context sensitive
  •  related image
    CONTEXT-INSENSITIVE ANALYSIS
  •  related image
    COUNTER EXAMPLES
  •  related image
    In contexts
  •  related image
    JAVACC
  •  related image
    LEXICAL STATES
  •  related image
    Open sources
  •  related image
    Regular expressions
  •  related image
    CONTEXT FREE GRAMMARS