def parse_alias(alias, quote_char):
    """
    Extract the alias if available.

    :param alias:
        antlr context

    :parma quote_char:
        which string quote character to use

    """
    if alias:
        alias = alias.ID().getText().strip(quote_char)
    else:
        alias = None
    return alias