Let us walk on the 3-isogeny graph
|
Data Structures | |
class | AnnotatedItem |
class | ConverterState |
class | EachItem |
class | EditablePartial |
class | ElementState |
Functions | |
str | railroad_to_html (List[NamedDiagram] diagrams, embed=False, **kwargs) |
T | resolve_partial ("EditablePartial[T]" partial) |
List[NamedDiagram] | to_railroad (pyparsing.ParserElement element, typing.Optional[dict] diagram_kwargs=None, int vertical=3, bool show_results_names=False, bool show_groups=False) |
bool | _should_vertical (int specification, Iterable[pyparsing.ParserElement] exprs) |
bool | _worth_extracting (pyparsing.ParserElement element) |
_apply_diagram_item_enhancements (fn) | |
_visible_exprs (Iterable[pyparsing.ParserElement] exprs) | |
typing.Optional[EditablePartial] | _to_diagram_element (pyparsing.ParserElement element, typing.Optional[EditablePartial] parent, ConverterState lookup=None, int vertical=None, int index=0, str name_hint=None, bool show_results_names=False, bool show_groups=False) |
Variables | |
str | jinja2_template_source |
template = Template(jinja2_template_source) | |
NamedDiagram | |
T = TypeVar("T") | |
|
protected |
decorator to ensure enhancements to a diagram item (such as results name annotations) get applied on return from _to_diagram_element (we do this since there are several returns in _to_diagram_element)
Definition at line 395 of file __init__.py.
References i.
|
protected |
Returns true if we should return a vertical list of elements
Definition at line 234 of file __init__.py.
References pip._vendor.pyparsing.diagram._visible_exprs(), and i.
Referenced by pip._vendor.pyparsing.diagram._to_diagram_element().
|
protected |
Recursively converts a PyParsing Element to a railroad Element :param lookup: The shared converter state that keeps track of useful things :param index: The index of this element within the parent :param parent: The parent of this element in the output tree :param vertical: Controls at what point we make a list of elements vertical. If this is an integer (the default), it sets the threshold of the number of items before we go vertical. If True, always go vertical, if False, never do so :param name_hint: If provided, this will override the generated name :param show_results_names: bool flag indicating whether to add annotations for results names :returns: The converted version of the input element, but as a Partial that hasn't yet been constructed :param show_groups: bool flag indicating whether to show groups using bounding box
Definition at line 452 of file __init__.py.
References pip._vendor.pyparsing.diagram._should_vertical(), pip._vendor.pyparsing.diagram._to_diagram_element(), pip._vendor.pyparsing.diagram._worth_extracting(), and i.
Referenced by pip._vendor.pyparsing.diagram._to_diagram_element(), and pip._vendor.pyparsing.diagram.to_railroad().
|
protected |
Definition at line 438 of file __init__.py.
References i.
Referenced by pip._vendor.pyparsing.diagram._should_vertical().
|
protected |
Returns true if this element is worth having its own sub-diagram. Simply, if any of its children themselves have children, then its complex enough to extract
Definition at line 386 of file __init__.py.
References i.
Referenced by pip._vendor.pyparsing.diagram._to_diagram_element().
str railroad_to_html | ( | List[NamedDiagram] | diagrams, |
embed = False , |
|||
** | kwargs | ||
) |
Given a list of NamedDiagram, produce a single HTML string that visualises those diagrams :params kwargs: kwargs to be passed in to the template
Definition at line 137 of file __init__.py.
References i.
Recursively resolves a collection of Partials into whatever type they are
Definition at line 160 of file __init__.py.
References i, and pip._vendor.pyparsing.diagram.resolve_partial().
Referenced by pip._vendor.pyparsing.diagram.resolve_partial(), and pip._vendor.pyparsing.diagram.to_railroad().
List[NamedDiagram] to_railroad | ( | pyparsing.ParserElement | element, |
typing.Optional[dict] | diagram_kwargs = None , |
||
int | vertical = 3 , |
||
bool | show_results_names = False , |
||
bool | show_groups = False |
||
) |
Convert a pyparsing element tree into a list of diagrams. This is the recommended entrypoint to diagram creation if you want to access the Railroad tree before it is converted to HTML :param element: base element of the parser being diagrammed :param diagram_kwargs: kwargs to pass to the Diagram() constructor :param vertical: (optional) - int - limit at which number of alternatives should be shown vertically instead of horizontally :param show_results_names - bool to indicate whether results name annotations should be included in the diagram :param show_groups - bool to indicate whether groups should be highlighted with an unlabeled surrounding box
Definition at line 176 of file __init__.py.
References pip._vendor.pyparsing.diagram._to_diagram_element(), i, and pip._vendor.pyparsing.diagram.resolve_partial().
str jinja2_template_source |
Definition at line 20 of file __init__.py.
NamedDiagram |
Definition at line 58 of file __init__.py.
T = TypeVar("T") |
Definition at line 66 of file __init__.py.
template = Template(jinja2_template_source) |
Definition at line 55 of file __init__.py.