LLDB mainline
embedded_interpreter Namespace Reference

Classes

class  LLDBExit

Functions

 is_libedit ()
 strip_and_check_exit (line)
 readfunc (prompt)
 readfunc_stdio (prompt)
 run_python_interpreter (local_dict)
 generate_extension_schema (cls)
 run_one_line (local_dict, input_string)

Variables

bool have_readline = False
 g_run_one_line_str = None
 __name__
 __module__

Function Documentation

◆ generate_extension_schema()

embedded_interpreter.generate_extension_schema ( cls)
Introspect a scripting extension base class and return a JSON schema
describing its members. Used by `scripting extension generate` (via
`ScriptInterpreterPython::GetExtensionSchema`) to emit a skeleton
subclass with `# TODO: Implement` stubs for each method the base class
defines. Each method entry carries the signature, type hints,
docstring, and whether it's `@abstractmethod`, so the generator can
decide which methods to stub out (all of them with `-a`, otherwise
just the abstract ones). The schema also lists non-callable
attributes the base class exposes -- class-level values plus
class-body type annotations -- so the generator can advertise them in
the derived class' docstring. A `typing_imports` field enumerates
every `typing` generic (`Optional`, `Union`, ...) referenced by the
signatures or attribute types, so the generator can add the right
`from typing import` line without having to re-scan strings.

Definition at line 81 of file embedded_interpreter.py.

◆ is_libedit()

embedded_interpreter.is_libedit ( )

Definition at line 19 of file embedded_interpreter.py.

References is_libedit().

Referenced by is_libedit().

◆ readfunc()

embedded_interpreter.readfunc ( prompt)

Definition at line 46 of file embedded_interpreter.py.

References strip_and_check_exit().

◆ readfunc_stdio()

embedded_interpreter.readfunc_stdio ( prompt)

Definition at line 51 of file embedded_interpreter.py.

References strip_and_check_exit().

◆ run_one_line()

embedded_interpreter.run_one_line ( local_dict,
input_string )

Definition at line 205 of file embedded_interpreter.py.

References strip_and_check_exit().

◆ run_python_interpreter()

embedded_interpreter.run_python_interpreter ( local_dict)

Definition at line 62 of file embedded_interpreter.py.

◆ strip_and_check_exit()

embedded_interpreter.strip_and_check_exit ( line)

Definition at line 39 of file embedded_interpreter.py.

Referenced by readfunc(), readfunc_stdio(), and run_one_line().

Variable Documentation

◆ __module__

embedded_interpreter.__module__
private

Definition at line 195 of file embedded_interpreter.py.

◆ __name__

embedded_interpreter.__name__
private

Definition at line 194 of file embedded_interpreter.py.

◆ g_run_one_line_str

embedded_interpreter.g_run_one_line_str = None

Definition at line 32 of file embedded_interpreter.py.

◆ have_readline

bool embedded_interpreter.have_readline = False

Definition at line 11 of file embedded_interpreter.py.