added support for wildcards in parameter fitting of the grammar