Beispiel #1
0
 def grammar():
     return ZeroOrMore("a"), EOF
Beispiel #2
0
def term16():
    return term17, ZeroOrMore(['-', '+'], term17)
Beispiel #3
0
def term13():
    return term14, ZeroOrMore(['<=?', '>=?', '<?', '>?', '<=', '>=', '<', '>'],
                              term14)
Beispiel #4
0
def set_part():
    return key_set, settable, ZeroOrMore(',', settable)
Beispiel #5
0
def term18():
    return ZeroOrMore(['&&/', '||/', '#/', '-', '*', '&', '!', '~',
                       cast]), term19,
Beispiel #6
0
def create_part():
    return key_create, pattern, ZeroOrMore(',', pattern)
Beispiel #7
0
def match_part():
    return Optional(is_optional), key_match, pattern, ZeroOrMore(',', pattern)
Beispiel #8
0
def term7():
    return term8, ZeroOrMore('||', term8)
Beispiel #9
0
def term3():
    return term4, ZeroOrMore(',', term4)
Beispiel #10
0
def term9():
    return term10, ZeroOrMore('|', term10)
Beispiel #11
0
def term8():
    return term9, ZeroOrMore('&&', term9)
Beispiel #12
0
def term10():
    return term11, ZeroOrMore('^', term11)
Beispiel #13
0
def term11():
    return term12, ZeroOrMore(RegExMatch(r'&(?!&)', str_repr='&'), term12)
Beispiel #14
0
def term18a():
    return term19, ZeroOrMore('(', Optional(expression), ')')
Beispiel #15
0
def json_members():
    return json_member, ZeroOrMore(',', json_member)
Beispiel #16
0
def term2():
    return term3, ZeroOrMore('=>', term1)
Beispiel #17
0
def json_elements():
    return json_value, ZeroOrMore(',', json_value)
Beispiel #18
0
def term0():
    return term1, ZeroOrMore(';', term1)
Beispiel #19
0
def delete_part():
    return Optional(is_detach), key_delete, entity, ZeroOrMore(',', entity)
def foo():
    return "a", bar, "b", baz, bar2, ZeroOrMore(bar)
Beispiel #21
0
def remove_part():
    return key_remove, removable, ZeroOrMore(',', removable)
def bar2():
    return ZeroOrMore(bla)
Beispiel #23
0
def term19():
    return term19a, ZeroOrMore([
        (['.', '->', '-->', '@'], term19a),
        ('[', expression, ']'),
        ('[[', expression, ']]'),
    ])
Beispiel #24
0
def items():
    return first, ZeroOrMore(',', item)
Beispiel #25
0
def term17():
    return term18, ZeroOrMore(['/', '*', '%'], term18)
Beispiel #26
0
def clauses():
    return clause, ZeroOrMore(';', clause)
Beispiel #27
0
def term15():
    return term16, ZeroOrMore(['<<', '>>'], term16)
Beispiel #28
0
def order_by():
    return key_order, key_by, sortable, ZeroOrMore(',', sortable)
Beispiel #29
0
def term12():
    return term13, ZeroOrMore(['==?', '!=?', '==', '!='], term13)
Beispiel #30
0
def expression(): return term, ZeroOrMore(["+", "-"], term)
def calc():       return OneOrMore(expression), EOF