mirror of
https://github.com/MillironX/nfdocs-parser.git
synced 2024-12-22 11:18:16 +00:00
Add a function that can parse recursive tuples
Signed-off-by: Thomas A. Christensen II <25492070+MillironX@users.noreply.github.com>
This commit is contained in:
parent
c481a04fc0
commit
557a7e3ccd
1 changed files with 12 additions and 0 deletions
|
@ -25,6 +25,18 @@ def definition_type(signature):
|
|||
# Return the results
|
||||
return def_name, def_type
|
||||
|
||||
def params_to_list(params):
|
||||
if "tuple" in params.keys():
|
||||
tuple_item = nodes.list_item(text="tuple")
|
||||
tuple_list = nodes.bullet_list()
|
||||
for io in params["tuple"]:
|
||||
tuple_list += params_to_list(io)
|
||||
tuple_item += tuple_list
|
||||
return tuple_item
|
||||
else:
|
||||
return nodes.list_item(text="not tuple")
|
||||
print("not yet implemented")
|
||||
|
||||
# Take path as single argument for now
|
||||
nextflow_path = sys.argv[1]
|
||||
with open(nextflow_path) as nextflow_file:
|
||||
|
|
Loading…
Reference in a new issue