コード例 #1
0
def p_selector_zoom_empty_subpart(p):
    'selector : SUBJECT ZOOM SUBPART'
    p[0] = [ast.Selector(subject=p[1], zoom=p[2], subpart=p[3])]
コード例 #2
0
def p_selector_zoom_empty(p):
    'selector : SUBJECT ZOOM'
    p[0] = [ast.Selector(subject=p[1], zoom=p[2])]
コード例 #3
0
def p_selector_empty_subpart(p):
    'selector : SUBJECT SUBPART'
    p[0] = [ast.Selector(subject=p[1], subpart=p[2])]
コード例 #4
0
def p_selector_empty(p):
    'selector : SUBJECT'
    p[0] = [ast.Selector(subject=p[1])]