def grammar(): return ZeroOrMore("a"), EOF
def term16(): return term17, ZeroOrMore(['-', '+'], term17)
def term13(): return term14, ZeroOrMore(['<=?', '>=?', '<?', '>?', '<=', '>=', '<', '>'], term14)
def set_part(): return key_set, settable, ZeroOrMore(',', settable)
def term18(): return ZeroOrMore(['&&/', '||/', '#/', '-', '*', '&', '!', '~', cast]), term19,
def create_part(): return key_create, pattern, ZeroOrMore(',', pattern)
def match_part(): return Optional(is_optional), key_match, pattern, ZeroOrMore(',', pattern)
def term7(): return term8, ZeroOrMore('||', term8)
def term3(): return term4, ZeroOrMore(',', term4)
def term9(): return term10, ZeroOrMore('|', term10)
def term8(): return term9, ZeroOrMore('&&', term9)
def term10(): return term11, ZeroOrMore('^', term11)
def term11(): return term12, ZeroOrMore(RegExMatch(r'&(?!&)', str_repr='&'), term12)
def term18a(): return term19, ZeroOrMore('(', Optional(expression), ')')
def json_members(): return json_member, ZeroOrMore(',', json_member)
def term2(): return term3, ZeroOrMore('=>', term1)
def json_elements(): return json_value, ZeroOrMore(',', json_value)
def term0(): return term1, ZeroOrMore(';', term1)
def delete_part(): return Optional(is_detach), key_delete, entity, ZeroOrMore(',', entity)
def foo(): return "a", bar, "b", baz, bar2, ZeroOrMore(bar)
def remove_part(): return key_remove, removable, ZeroOrMore(',', removable)
def bar2(): return ZeroOrMore(bla)
def term19(): return term19a, ZeroOrMore([ (['.', '->', '-->', '@'], term19a), ('[', expression, ']'), ('[[', expression, ']]'), ])
def items(): return first, ZeroOrMore(',', item)
def term17(): return term18, ZeroOrMore(['/', '*', '%'], term18)
def clauses(): return clause, ZeroOrMore(';', clause)
def term15(): return term16, ZeroOrMore(['<<', '>>'], term16)
def order_by(): return key_order, key_by, sortable, ZeroOrMore(',', sortable)
def term12(): return term13, ZeroOrMore(['==?', '!=?', '==', '!='], term13)
def expression(): return term, ZeroOrMore(["+", "-"], term) def calc(): return OneOrMore(expression), EOF