read off grammars following parameter file from CLI

- refactor grammar extraction in runexp