Commit e66328fc authored by David Hancock's avatar David Hancock

Import proto work to p4_hp4v2; implement gen_pipeline_config_entries

parent e38030af
This diff is collapsed.
......@@ -537,16 +537,25 @@ def gen_parse_select_entries(pcs, commands=[]):
def get_pipeline_config_entries(level):
commands = []
# TODO...
# TODO
return commands
""" I don't think we will output the commands here
Rather we just need to look at the headers
"""
def gen_pipeline_config_entries(pcs):
commands = []
""" This approach seems incorrect:
pcs_levels = collect_pcs_levels(pcs)
for level in pcs_levels:
commands += get_pipeline_config_entries(level)
"""
debug()
# pcs_headers =
return commands
""" This method evidently is worthless:
def collect_pcs_levels(pcs, levellist = [], level=0):
if pcs.pcs_id == 0:
return collect_pcs_levels(pcs.children[0], [[pcs.children[0]]])
......@@ -559,6 +568,7 @@ def collect_pcs_levels(pcs, levellist = [], level=0):
for child in pcs.children:
levellist = collect_pcs_levels(child, levellist, level+1)
return levellist
"""
def process_extract_statements(pcs):
for call in pcs.parse_state.call_sequence:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment