| summaryrefslogtreecommitdiff | 
diff options
| author | Nathanael Sensfelder <SpamShield0@MultiAgentSystems.org> | 2017-07-21 16:50:25 +0200 | 
|---|---|---|
| committer | Nathanael Sensfelder <SpamShield0@MultiAgentSystems.org> | 2017-07-21 16:50:25 +0200 | 
| commit | d05bd3592050a9496dd87bcd8a49f8fdc8b6b58d (patch) | |
| tree | 13ce81449e21c48621ae0ef4dd0f451b72f1c37a /ast-to-instr/src/VHDLSSCNode.java | |
| parent | 0aa91fb542bd4e2bec97de98ab819ddd6ccbb698 (diff) | |
Adds output support.
Diffstat (limited to 'ast-to-instr/src/VHDLSSCNode.java')
| -rw-r--r-- | ast-to-instr/src/VHDLSSCNode.java | 39 | 
1 files changed, 36 insertions, 3 deletions
diff --git a/ast-to-instr/src/VHDLSSCNode.java b/ast-to-instr/src/VHDLSSCNode.java index 8fb620b..34c4f7d 100644 --- a/ast-to-instr/src/VHDLSSCNode.java +++ b/ast-to-instr/src/VHDLSSCNode.java @@ -21,6 +21,7 @@ public class VHDLSSCNode extends VHDLNode     public VHDLSSCNode     ( +      final OutputFile output,        final IDs parent_id,        final Node xml_node,        final IDs prev_node, /* can't simply forward ref to SSC */ @@ -31,6 +32,7 @@ public class VHDLSSCNode extends VHDLNode     {        super        ( +         output,           parent_id,           xml_node,           next_node, @@ -68,6 +70,7 @@ public class VHDLSSCNode extends VHDLNode           next_node =              IDs.get_id_from_xml_id              ( +               output,                 XMLManager.get_attribute                 (                    sub_nodes.item(i + 1), @@ -108,15 +111,42 @@ public class VHDLSSCNode extends VHDLNode        if (node_kind.equals("if_statement"))        { -         return new VHDLISNode(parent_id, node, next_node, depth, attributes); +         return +            new VHDLISNode +            ( +               output, +               parent_id, +               node, +               next_node, +               depth, +               attributes +            );        }        else if (node_kind.equals("simple_signal_assignment_statement"))        { -         return new VHDLSSASNode(parent_id, node, next_node, depth, attributes); +         return +            new VHDLSSASNode +            ( +               output, +               parent_id, +               node, +               next_node, +               depth, +               attributes +            );        }        else if (node_kind.equals("case_statement"))        { -         return new VHDLCSNode(parent_id, node, next_node, depth, attributes); +         return +            new VHDLCSNode +            ( +               output, +               parent_id, +               node, +               next_node, +               depth, +               attributes +            );        }        System.err.println @@ -141,6 +171,7 @@ public class VHDLSSCNode extends VHDLNode        first_node_id =           IDs.get_id_from_xml_id           ( +            output,              XMLManager.get_attribute              (                 first_node, @@ -154,6 +185,7 @@ public class VHDLSSCNode extends VHDLNode           /* First node of the process */           Predicates.add_entry           ( +            output,              "is_start_node",              first_node_id,              parent_id @@ -164,6 +196,7 @@ public class VHDLSSCNode extends VHDLNode           /* First node of the process */           Predicates.add_entry           ( +            output,              "connect_to",              prev_node,              first_node_id  | 


