class documentation

class _FromStringWorker:

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):

Undocumented

def finalize_string(self, s):

Undocumented

def parse(self, inp):

Undocumented

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

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 =

Undocumented

original =

Undocumented

quotes_map =

Undocumented