def parsing_method_parameter_list_iter(): # TODO Support {... , ...} and <A,B> simple_exp = script.compile(""" ( block <- (null <- LP), *(req^(RP), @0), (null <- RP)) | any ;""") complex_script = script.compile(""" ( method_invoke <- target_method, (null <- LP), *(req^(RP), @simpleExp), (null <- RP)) ;""", replaces={'simpleExp': simple_exp}) yield Search(complex_script) yield Search(script.compile(""" ( method_invoke :: ~( target_method, +(param <- +any^(comma), ?comma))) ;"""))
def parsing_method_parameter_list_iter(): # TODO Support {... , ...} and <A,B> simple_exp = script.compile(""" ( block <- (null <- LP), *(req^(RP), @0), (null <- RP)) | any ;""") complex_script = script.compile(""" ( method_invoke <- target_method, (null <- LP), *(req^(RP), @simpleExp), (null <- RP)) ;""", replaces={'simpleExp': simple_exp}) yield Search(complex_script) yield Search( script.compile(""" ( method_invoke :: ~( target_method, +(param <- +any^(comma), ?comma))) ;"""))
def search_method(method_name): return Search(script.compile("""target_method <- (id :: "%s");""" % (method_name)))
def parsing_parameter(): return Search(script.compile(""" ( method_invoke :: ~( target_method, +(param <- +any^(comma), ?comma))) ;"""))
def search_method(method_name): return Search( script.compile("""target_method <- (id :: "%s");""" % (method_name)))
def parsing_parameter(): return Search( script.compile(""" ( method_invoke :: ~( target_method, +(param <- +any^(comma), ?comma))) ;"""))