summaryrefslogtreecommitdiffstats
path: root/src/grammar/ReduceExpr.java
diff options
context:
space:
mode:
authorConstantin Jucovschi <cj@ubuntu.localdomain>2009-03-31 06:18:54 -0400
committerConstantin Jucovschi <cj@ubuntu.localdomain>2009-03-31 06:18:54 -0400
commit0f1055b8d7f97d86c66fa602c17666bc2ff9c437 (patch)
tree9c68fa99a97063bbe4a4231e04fc09329541ac71 /src/grammar/ReduceExpr.java
Initial commit
Diffstat (limited to 'src/grammar/ReduceExpr.java')
-rw-r--r--src/grammar/ReduceExpr.java25
1 files changed, 25 insertions, 0 deletions
diff --git a/src/grammar/ReduceExpr.java b/src/grammar/ReduceExpr.java
new file mode 100644
index 0000000..1b5f8c1
--- /dev/null
+++ b/src/grammar/ReduceExpr.java
@@ -0,0 +1,25 @@
+package grammar;
+
+/** ReduceExpr
+ *
+ * @author Andrei Aiordachioaie
+ */
+public class ReduceExpr implements IParseTreeNode
+{
+ String op;
+ CoverageExpr expr;
+
+ public ReduceExpr(String op, CoverageExpr e)
+ {
+ this.op = op;
+ this.expr = e;
+ }
+
+ public String toXML()
+ {
+ String result = "<" + op + ">" + expr.toXML() + "</" + op + ">";
+
+ return result;
+ }
+
+}