# Path: godot/parsing_util.py
# class ToBoolean(TokenConverter):
# class ToInteger(TokenConverter):
# class ToFloat(TokenConverter):
# class ToTuple(TokenConverter):
# class ToList(TokenConverter):
#     def postParse(self, instring, loc, tokenlist):
#     def postParse(self, instring, loc, tokenlist):
#     def postParse(self, instring, loc, tokenlist):
#     def postParse(self, instring, loc, tokenlist):
#     def postParse(self, instring, loc, tokenlist):
# def make_unique_name(base, existing=[], format="%s_%s"):
# def nsplit(seq, n=2):
# def windows(iterable, length=2, overlap=0, padding=True):
# 
# Path: godot/component/api.py



from enthought.enable.api import Component
from pyparsing import __version__ as pyparsing_version
from colorsys import hsv_to_rgb
from pyparsing import \
    Literal, CaselessLiteral, Word, Upcase, OneOrMore, ZeroOrMore, Forward, \
    NotAny, delimitedList, oneOf, Group, Optional, Combine, alphas, nums, \
    restOfLine, cppStyleComment, nums, alphanums, printables, empty, \
    quotedString, CharsNotIn, _noncomma, Suppress, nestedExpr, Suppress, Or
from godot.parsing_util import \
    real, integer, minus, quote, equals, colour, nsplit, ToInteger
from godot.component.api import \
    Pen, Ellipse, Polygon, Polyline, BSpline, Text
            return []

    #--------------------------------------------------------------------------
    #  Define the dot parser
    #--------------------------------------------------------------------------

    def define_parser(self):
        """ Defines xdot grammar.

        @see: http://graphviz.org/doc/info/output.html#d:xdot """

        # Common constructs.
        point = Group(integer.setResultsName("x") +
                      integer.setResultsName("y"))
        n_points = (integer.setResultsName("n") +
            OneOrMore(point).setResultsName("points"))
        n_bytes = Suppress(integer) + Suppress(minus) + \
            Word(printables).setResultsName("b")
        justify = ToInteger(
            Literal("-1") | Literal("0") | Literal("1")
        ).setResultsName("j")

        # Attributes ----------------------------------------------------------

        # Set fill color. The color value consists of the n bytes following
        # the '-'.
        fill = (Literal("C").suppress() + Suppress(integer) + Suppress(minus) +
            colour.setResultsName("color")).setResultsName("fill")

        # Set pen color. The color value consists of the n bytes following '-'.

# Path: godot/parsing_util.py
# class ToBoolean(TokenConverter):
# class ToInteger(TokenConverter):
# class ToFloat(TokenConverter):
# class ToTuple(TokenConverter):
# class ToList(TokenConverter):
#     def postParse(self, instring, loc, tokenlist):
#     def postParse(self, instring, loc, tokenlist):
#     def postParse(self, instring, loc, tokenlist):
#     def postParse(self, instring, loc, tokenlist):
#     def postParse(self, instring, loc, tokenlist):
# def make_unique_name(base, existing=[], format="%s_%s"):
# def nsplit(seq, n=2):
# def windows(iterable, length=2, overlap=0, padding=True):
# 
# Path: godot/component/api.py



# Path: godot/xdot_parser.py
from enthought.enable.api import Component
from pyparsing import __version__ as pyparsing_version
from colorsys import hsv_to_rgb
from pyparsing import \
    Literal, CaselessLiteral, Word, Upcase, OneOrMore, ZeroOrMore, Forward, \
    NotAny, delimitedList, oneOf, Group, Optional, Combine, alphas, nums, \
    restOfLine, cppStyleComment, nums, alphanums, printables, empty, \
    quotedString, CharsNotIn, _noncomma, Suppress, nestedExpr, Suppress, Or
from godot.parsing_util import \
    real, integer, minus, quote, equals, colour, nsplit, ToInteger
from godot.component.api import \
    Pen, Ellipse, Polygon, Polyline, BSpline, Text

            return []

    #--------------------------------------------------------------------------
    #  Define the dot parser
    #--------------------------------------------------------------------------

    def define_parser(self):
        """ Defines xdot grammar.

        @see: http://graphviz.org/doc/info/output.html#d:xdot """

        # Common constructs.
        point = Group(integer.setResultsName("x") +
                      integer.setResultsName("y"))
        n_points = (integer.setResultsName("n") +
            OneOrMore(point).setResultsName("points"))
        n_bytes = Suppress(integer) + Suppress(minus) + \
            Word(printables).setResultsName("b")
        justify = ToInteger(
            Literal("-1") | Literal("0") | Literal("1")
        ).setResultsName("j")

        # Attributes ----------------------------------------------------------

        # Set fill color. The color value consists of the n bytes following
        # the '-'.
        fill = (Literal("C").suppress() + Suppress(integer) + Suppress(minus) +
            colour.setResultsName("color")).setResultsName("fill")

        # Set pen color. The color value consists of the n bytes following '-'.

        stroke = (Literal("c").suppress() + Suppress(integer) +