summaryrefslogtreecommitdiff
path: root/Variables.py
diff options
context:
space:
mode:
Diffstat (limited to 'Variables.py')
-rw-r--r--Variables.py19
1 files changed, 7 insertions, 12 deletions
diff --git a/Variables.py b/Variables.py
index 26de704..6656e82 100644
--- a/Variables.py
+++ b/Variables.py
@@ -1,27 +1,22 @@
#!/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.
+Copyright (C) 2011-2014 Peter Wu <lekensteyn@gmail.com>
+Licensed under the MIT license <http://opensource.org/licenses/MIT>.
"""
__author__ = "Peter Wu"
-__copyright__ = "Copyright 2011, Peter Wu"
+__copyright__ = "Copyright (C) 2011-2014 Peter Wu"
__credits__ = ["Peter Wu"]
-__license__ = "Proprietary"
+__license__ = "MIT"
__version__ = "1.0"
__maintainer__ = "Peter Wu"
-__email__ = "uwretep@gmail.com"
+__email__ = "lekensteyn@gmail.com"
class Variables(object):
def __init__(self, parent_variables):
"""A scope for holding variable names
-
+
Keywords arguments:
parent_variables -- the parent Variables object. If None, it's a global
variable scope
@@ -79,7 +74,7 @@ class Variables(object):
class GlobalVariables(Variables):
def __init__(self, defined_names):
"""A scope for holding variable names
-
+
Keywords arguments:
defined_names -- A dictionary holding identifiers which are already
defined in assembly