Antlr-grep is grep based on contex-free grammar and not regular expression. Could be used for fast, flexible, parsing. Antlr-grep is using Antlr for generating lexer and parser.
This grammars could be used for parsing.
For example:
-
We want to find all clasess which extend specific class
antlr-grep -g Java.g4 -p "classDeclaration: type=Foo*"