use grammar itself to determine if lexer, parser, or combined not filenames. Fixes #21
Merge pull request #27 from parrt/examine-grammar-type

use grammar itself to determine if lexer, parser, or combined not filena...