enable.savage.svg.pathdata module

SVG path data parser

Usage:

steps = svg.parseString(pathdata)
for command, arguments in steps:
    pass
enable.savage.svg.pathdata.Arguments(token)[source]
class enable.savage.svg.pathdata.CaselessPreservingLiteral(matchString)[source]

Bases: pyparsing.CaselessLiteral

Like CaselessLiteral, but returns the match as found instead of as defined.

parseImpl(instring, loc, doActions=True)[source]
enable.savage.svg.pathdata.Command(char)[source]

Case insensitive but case preserving

enable.savage.svg.pathdata.Sequence(token)[source]

A sequence of the token

enable.savage.svg.pathdata.convertToFloat(s, loc, toks)[source]
enable.savage.svg.pathdata.profile()[source]
enable.savage.svg.pathdata.ptest()[source]