Parser Generators: ANTLR vs JavaCC - DZone Java
ANTLR (ANother Tool for Language Recognition) is a parser generator developed by Terence Parr, it is extremely versatile and is capable of generating parsers in multiple programming languages, but requires a runtime library.
ANTLR Features:
- ALL(*) or ALL(k) Parser Generator (an adaptive top down parser with arbitrary token lookahead, ie there is no need to specify the lookahead k)
- Capable of generate parsers in a number of different programming languages including Java, C#, Python and JavaScript
- A runtime library is required.
- A good level of support in the most popular IDEs
- Version 4 JIT Compiles the parser
- The lexer, parser and abstract syntax tree can all be generated from a single grammar file.
- Parse tree is built automatically.
- Supports parsing modes for mixed language documents.
- Support for semantic and syntactic predicates.
- Grammar Definition is EBNF like.
- A book is available about ANTLR here
Read full article from Parser Generators: ANTLR vs JavaCC - DZone Java
No comments:
Post a Comment