From 1ef39e828479f0d82753f3912b7c5d85e49d708c Mon Sep 17 00:00:00 2001 From: Nathanael Sensfelder Date: Thu, 20 Jul 2017 15:43:38 +0200 Subject: Working on the "internal_process.py" translation. I think I've found some not-too-ugly solution. --- ast-to-instr/src/VHDLSSASNode.java | 47 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 47 insertions(+) create mode 100644 ast-to-instr/src/VHDLSSASNode.java (limited to 'ast-to-instr/src/VHDLSSASNode.java') diff --git a/ast-to-instr/src/VHDLSSASNode.java b/ast-to-instr/src/VHDLSSASNode.java new file mode 100644 index 0000000..de11c7b --- /dev/null +++ b/ast-to-instr/src/VHDLSSASNode.java @@ -0,0 +1,47 @@ +import org.w3c.dom.Node; +import org.w3c.dom.NodeList; + +import javax.xml.xpath.XPathConstants; +import javax.xml.xpath.XPathExpression; +import javax.xml.xpath.XPathExpressionException; + +import java.util.ArrayList; +import java.util.Collection; + +/* If Statement Node */ +public class VHDLISNode extends VHDLNode +{ + private static final XPathExpression XPE_FIND_SUB_NODES; + + static + { + XPE_FIND_SUB_NODES = XMLManager.compile_or_die("./el"); + } + + public VHDLISNode + ( + final IDs parent_id, + final Node xml_node, + final IDs next_node, + final int depth, + final String[] attributes + ) + { + super + ( + parent_id, + xml_node, + next_node, + depth, + attributes + ); + } + + @Override + public Collection parse () + throws XPathExpressionException + { + /* TODO */ + return null; + } +} -- cgit v1.2.3-70-g09d2