Qucs-S S-parameter Viewer & RF Synthesis Tools
Loading...
Searching...
No Matches
Public Member Functions | Static Public Attributes | Protected Member Functions | List of all members
parsimonious.grammar.LazyReference Class Reference
Inheritance diagram for parsimonious.grammar.LazyReference:
Inheritance graph
[legend]
Collaboration diagram for parsimonious.grammar.LazyReference:
Collaboration graph
[legend]

Public Member Functions

 resolve_refs (self, rule_map)
 

Static Public Attributes

str name = ''
 

Protected Member Functions

 _as_rhs (self)
 

Detailed Description

A lazy reference to a rule, which we resolve after grokking all the
rules

Member Function Documentation

◆ resolve_refs()

parsimonious.grammar.LazyReference.resolve_refs (   self,
  rule_map 
)
Traverse the rule map following top-level lazy references,
until we reach a cycle (raise an error) or a concrete expression.

For example, the following is a circular reference:
    foo = bar
    baz = foo2
    foo2 = foo

Note that every RHS of a grammar rule _must_ be either a
LazyReference or a concrete expression, so the reference chain will
eventually either terminate or find a cycle.

The documentation for this class was generated from the following file: