def to_python_sourcecode(grammar, name=None, filename=None, config: ParserConfig = None, **settings): model = compile(grammar, name=name, filename=filename, config=config, **settings) return pythoncg(model)
def to_python_sourcecode(grammar, name=None, filename=None, **kwargs): model = compile(grammar, name=name, filename=filename, **kwargs) return pythoncg(model)