src/basilisp/lang/compiler/generator.py
def py_module_preamble(ctx: GeneratorContext,) -> GeneratedPyAST:
    """Bootstrap a new module with imports and other boilerplate."""
    preamble: List[ast.AST] = []
    preamble.extend(_module_imports(ctx))
    preamble.append(_from_module_import())
    preamble.append(_ns_var())
    return GeneratedPyAST(node=ast.NameConstant(None), dependencies=preamble)
def py_module_preamble(ctx: GeneratorContext,) -> GeneratedPyAST:
    """Bootstrap a new module with imports and other boilerplate."""
    preamble: List[ast.AST] = []
    preamble.extend(_module_imports(ctx))
    preamble.append(_from_module_import())
    preamble.append(_ns_var())
    return GeneratedPyAST(node=ast.NameConstant(None), dependencies=preamble)
def py_module_preamble ( ctx : GeneratorContext , ) -> GeneratedPyAST : preamble : List [ ast . AST ] = [ ] preamble . extend ( _module_imports ( ctx ) ) preamble . append ( _from_module_import ( ) ) preamble . append ( _ns_var ( ) ) return GeneratedPyAST ( node = ast . NameConstant ( None ) , dependencies = preamble )
Bootstrap a new module with imports and other boilerplate.
Bootstrap a new module with imports and other boilerplate .