bnf2xml
simple BNF parser makes xml markup of matches
bnf2xml a simple BNF parser that takes text as input, searches according to a BNF query file, and outputs text marked up by the xml labels that show context.
bnf2xml is as simple to use as any text binary ie, awk(1) grep(1). bnf2xml does not require C API because it outputs simple xml labeling.
README is visible on file dl page.
EXAMPLE: $ echo "hi" | bnf2xml patternfile
<word><alph>h</alph><alph>i</alph></word>
or
<gas>hydrogen iodide</gas>
patternfile says how to find needle...