def p_character_with_anchor(p):
    """character : character anchor
                 | anchor character
                 | anchor anchor
                 | character flag
                 | character lookaround
                 | lookaround character
                 | character character
    """
    p[0] = []
    p[0] += p[1]
    p[0] += p[2]
