ANN: gram_grep (grep with a grammar)

Ben Hanson <>
Thu, 27 Jul 2017 03:41:14 -0700 (PDT)

          From comp.compilers

Related articles
ANN: gram_grep (grep with a grammar) (Ben Hanson) (2017-07-27)
| List of all articles for this month |

From: Ben Hanson <>
Newsgroups: comp.compilers
Date: Thu, 27 Jul 2017 03:41:14 -0700 (PDT)
Organization: Compilers Central
Injection-Info:; posting-host=""; logging-data="79885"; mail-complaints-to=""
Keywords: tools
Posted-Date: 27 Jul 2017 10:30:36 EDT


I have used my runtime lexer and parser generating libraries to
produce a search tool:

The tool operates in 3 different modes:

- Standard regex search
- Lexer mode search
- Parser mode search

Maybe you have wanted to search for text only in strings?
Or exclude strings from your search?
Or exclude comments?
Or even search only in comments?

All of these and more are easily achievable now.

I include a simple grammar search for looking for uninitialised variables in header files.



Post a followup to this message

Return to the comp.compilers page.
Search the comp.compilers archives again.