def p_step_axis_nodetest_predicates(p): """ Step : AxisSpecifier NodeTest PredicateList """ p[0] = ast.Step(p[1], p[2], p[3])
def p_step_nodetest_predicates(p): """ Step : NodeTest PredicateList """ p[0] = ast.Step(None, p[1], p[2])
def p_step_axis_nodetest(p): """ Step : AxisSpecifier NodeTest """ p[0] = ast.Step(p[1], p[2], [])
def p_step_nodetest(p): """ Step : NodeTest """ p[0] = ast.Step(None, p[1], [])