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

...mes. Fixes #21