def GetLiteral(parser, name):
    """Returns the literal with the given name, removing any single quotes if they exist"""

    value = parser.literalNames[name]

    if value.startswith("'"):
        value = value[1:]

    if value.endswith("'"):
        value = value[:-1]

    return value