Fixed grammar search: count number of bits intersected, fixed 'substring' search.
Do not lower parser tokens, only lower root word
Implemented grammar deduction from the stream of text. Added interface to generate grammar from text, suitable for ioremap::warp::parser