MCPcopy Create free account
hub / github.com/caelan/pddlstream / parse_common

Function parse_common

pddlstream/language/function.py:214–224  ·  view source on GitHub ↗
(lisp_list, stream_map, stream_info)

Source from the content-addressed store, hash-verified

212##################################################
213
214def parse_common(lisp_list, stream_map, stream_info):
215 assert (2 <= len(lisp_list) <= 3)
216 head = tuple(lisp_list[1])
217 assert (is_head(head))
218 name = get_prefix(head)
219 fn = get_procedure_fn(stream_map, name)
220 domain = []
221 if len(lisp_list) == 3:
222 domain = list_from_conjunction(lisp_list[2])
223 info = stream_info.get(name, None)
224 return head, fn, domain, info
225
226def parse_function(*args):
227 return Function(*parse_common(*args))

Callers 2

parse_functionFunction · 0.85
parse_predicateFunction · 0.85

Calls 4

is_headFunction · 0.90
get_prefixFunction · 0.90
get_procedure_fnFunction · 0.90
list_from_conjunctionFunction · 0.90

Tested by

no test coverage detected