def flatten_card(ast):
    """Flatten a card AST node into a string."""
    string = ast.front_demarcator_token.text \
        + ast.front_text \
        + ast.back_demarcator_token.text \
        + ast.back_text
    return string