X-Git-Url: http://plrg.eecs.uci.edu/git/?p=IRC.git;a=blobdiff_plain;f=Robust%2Fsrc%2FIR%2FDescriptor.java;fp=Robust%2Fsrc%2FIR%2FDescriptor.java;h=0000000000000000000000000000000000000000;hp=edafd624a5f716bf53b12dc5dcb9557911621417;hb=refs%2Ftags%2Fbuildscript;hpb=bae799f54777dbf7bf3f222c61aeeb72b4b11c85 diff --git a/Robust/src/IR/Descriptor.java b/Robust/src/IR/Descriptor.java deleted file mode 100644 index edafd624..00000000 --- a/Robust/src/IR/Descriptor.java +++ /dev/null @@ -1,42 +0,0 @@ -package IR; - -/** - * Descriptor - * - * represents a symbol in the language (var name, function name, etc). - */ - -public abstract class Descriptor { - - protected String name; - protected String safename; - static int count=0; - int uniqueid; - - public Descriptor(String name) { - this.name = name; - this.safename = "___" + name + "___"; - this.uniqueid=count++; - } - - protected Descriptor(String name, String safename) { - this.name = name; - this.safename = safename; - this.uniqueid=count++; - } - - public String toString() { - return name; - } - - public String getSymbol() { - return name; - } - - public String getSafeSymbol() { - return safename; - } - public int getNum() { - return uniqueid; - } -}