ANTLRWorks: an ANTLR grammar development environment
Authors:
- 4 February 2008
- journal article
- research article
- Published by Wiley in Software: Practice and Experience
- Vol. 38 (12) , 1305-1332
Abstract
Programmers tend to avoid using language tools, resorting toad hocmethods, because tools can be hard to use, their parsing strategies can be difficult to understand and debug, and their generated parsers can be opaque black‐boxes. In particular, there are two very common difficulties encountered by grammar developers: understanding why a grammar fragment results in a parser non‐determinism and determining why a generated parser incorrectly interprets an input sentence. This paper describes ANTLRWorks, a complete development environment for ANTLR grammars that attempts to resolve these difficulties and, in general, make grammar development more accessible to the average programmer. The main components are a grammar editor with refactoring and navigation features, a grammar interpreter, and a domain‐specific grammar debugger. ANTLRWorks' primary contributions are a parser non‐determinism visualizer based on syntax diagrams and a time‐traveling debugger that pays special attention to parser decision‐making by visualizing lookahead usage and speculative parsing during backtracking. Copyright © 2008 John Wiley & Sons, Ltd.Keywords
This publication has 23 references indexed in Scilit:
- Toward an engineering discipline for grammarwareACM Transactions on Software Engineering and Methodology, 2005
- Automatic generation of language-based tools using the LISA systemIEE Proceedings - Software, 2005
- Elkhound: A Fast, Practical GLR Parser Generator2004
- SmartTools: A Generator of Interactive Environments ToolsElectronic Notes in Theoretical Computer Science, 2001
- Practical Experiments with Regular Approximation of Context-Free LanguagesComputational Linguistics, 2000
- Debugging Eli-Generated Compilers with Noosa1999
- Engineering a simple, efficient code-generator generatorACM Letters on Programming Languages and Systems, 1992
- Practical arbitrary lookahead LR parsingJournal of Computer and System Sciences, 1990
- Transition network grammars for natural language analysisCommunications of the ACM, 1970
- An efficient context-free parsing algorithmCommunications of the ACM, 1970