Creates a Grammar using the DSL provided in pattern.
Creates a Grammar with the specified startRule using the DSL provided in pattern.