diff options
| author | Constantin Jucovschi <cj@ubuntu.localdomain> | 2009-03-31 06:18:54 -0400 |
|---|---|---|
| committer | Constantin Jucovschi <cj@ubuntu.localdomain> | 2009-03-31 06:18:54 -0400 |
| commit | 0f1055b8d7f97d86c66fa602c17666bc2ff9c437 (patch) | |
| tree | 9c68fa99a97063bbe4a4231e04fc09329541ac71 /src/grammar/RangeExprList.java | |
Initial commit
Diffstat (limited to 'src/grammar/RangeExprList.java')
| -rw-r--r-- | src/grammar/RangeExprList.java | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/src/grammar/RangeExprList.java b/src/grammar/RangeExprList.java new file mode 100644 index 0000000..d4e555a --- /dev/null +++ b/src/grammar/RangeExprList.java @@ -0,0 +1,32 @@ +package grammar; + +import java.util.*; + +/** RangeExprList + * + * @author Andrei Aiordachioaie + */ +public class RangeExprList implements IParseTreeNode +{ + LinkedList<RangeExpr> list; + + public RangeExprList() + { + list = new LinkedList(); + } + + public void add(RangeExpr expr) + { + list.add(expr); + } + + public String toXML() + { + String result = ""; + + Iterator<RangeExpr> it = list.iterator(); + while (it.hasNext()) + result += "<null>" + it.next().toXML() + "</xml>"; + return result; + } +}
\ No newline at end of file |
