Skip to content

Print PG

Description of issue:

The PG should be able to be represented in text-form and printed to the user in human readable format.

Linked Requirements:

( 39 )

Potential Issues:

None

Blockers:

( #25 (closed) )

Issue Requirements:
  1. Given a valid PG, then the user should be able to get all information relevant to the PG presented to it in a readable text-format.
  2. The text-format should represent the PG in way so that it is clear that it is a PG.
  3. The representation should not modify the PG in any way.
Comment:

You can look at how the #19 (closed) was implemented for an idea how to print this kind of information.

user Stories:

  1. As a user I want to be able to print a precedence list which should show output conforming to the following format:
    
    --------------------------------------------------------------------------------------
    1.1 \t op_id: in1 \t op_name: MyInput \t output_port: 0 \t inputs: [] \t outputs: [s1]
    --------------------------------------------------------------------------------------
    2.1 \t id: cmul1 \t name: MyCmul \t output_port: 0 \t inputs: [s1] \t outputs: [s2]
    --------------------------------------------------------------------------------------
    
    where "\t" represents a tab character of spacing.
    
Edited by Angus Lothian