summaryrefslogtreecommitdiff
path: root/NamedId.py
diff options
context:
space:
mode:
Diffstat (limited to 'NamedId.py')
-rw-r--r--NamedId.py29
1 files changed, 29 insertions, 0 deletions
diff --git a/NamedId.py b/NamedId.py
new file mode 100644
index 0000000..cb3091b
--- /dev/null
+++ b/NamedId.py
@@ -0,0 +1,29 @@
+#!/usr/bin/env python
+"""Compiles C into assembly for the practicum processor (PP2)
+
+All rights reserved, you may not redistribute or use this program without prior
+permission from Peter Wu or Xander Houtman. Use of this program is entirely
+your own risk. In no circumstances can the authors of this program be held
+responsible for any damage including, but not limited to, financial damage or
+data loss. Modification of this program is not allowed without prior
+permission. The generated output (assembly and messages) are not subject to
+this license.
+"""
+
+__author__ = "Peter Wu"
+__copyright__ = "Copyright 2011, Peter Wu"
+__credits__ = ["Peter Wu"]
+__license__ = "Proprietary"
+__version__ = "1.0"
+__maintainer__ = "Peter Wu"
+__email__ = "uwretep@gmail.com"
+
+class NamedId(object):
+ def __init__(self, name):
+ self.name = name
+ self.display_name = name
+ def rename(self, name):
+ """Changes the display value of this object"""
+ self.display_name = name
+ def __str__(self):
+ return self.display_name \ No newline at end of file