class documentation

class _FromStringWorker: (source)

View In Hierarchy

Undocumented

Method __init__ Undocumented
Method finalize_string Undocumented
Method parse Undocumented
Method process Parse string within the given context.
Instance Variable language Undocumented
Instance Variable original Undocumented
Instance Variable quotes_map Undocumented
def __init__(self, language=Language.C): (source)

Undocumented

def finalize_string(self, s): (source)

Undocumented

def parse(self, inp): (source)

Undocumented

def process(self, s, context='expr'): (source)

Parse string within the given context.

The context may define the result in case of ambiguous expressions. For instance, consider expressions f(x, y) and (x, y) + (a, b) where f is a function and pair (x, y) denotes complex number. Specifying context as "args" or "expr", the subexpression (x, y) will be parse to an argument list or to a complex number, respectively.

language = (source)

Undocumented

original = (source)

Undocumented

quotes_map = (source)

Undocumented