def p_field_directive_plus(self, p): '''field_directive_plus : field_directive | field_directive_plus COMMA field_directive''' if len(p) == 2: p[0] = [LU(p, 1)] else: p[0] = p[1] + [LU(p, 3)]
def p_dotname(self, p): '''dotname : NAME | dotname DOT NAME''' if len(p) == 2: p[0] = [LU(p, 1)] else: p[0] = p[1] + [LU(p, 3)]
def p_csv(self, p): '''csv : dotname | csv COMMA dotname''' if len(p) == 2: p[0] = [LU(p, 1)] else: p[0] = p[1] + [LU(p, 3)]
def p_option_rvalue2(self, p): '''option_rvalue : STRING_LITERAL''' p[0] = Literal(LU(p, 1))
def p_option_rvalue(self, p): '''option_rvalue : NUM | TRUE | FALSE''' p[0] = LU(p, 1)