1 #!/usr/bin/env python 2 3 """ 4 Simplified program representation. 5 6 Copyright (C) 2006, 2007 Paul Boddie <paul@boddie.org.uk> 7 8 This software is free software; you can redistribute it and/or 9 modify it under the terms of the GNU General Public License as 10 published by the Free Software Foundation; either version 2 of 11 the License, or (at your option) any later version. 12 13 This software is distributed in the hope that it will be useful, 14 but WITHOUT ANY WARRANTY; without even the implied warranty of 15 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 16 GNU General Public License for more details. 17 18 You should have received a copy of the GNU General Public 19 License along with this library; see the file LICENCE.txt 20 If not, write to the Free Software Foundation, Inc., 21 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA 22 """ 23 24 __version__ = "0.1" 25 26 from simplify.simplified.ast import * 27 from simplify.simplified.data import * 28 from simplify.simplified.program import * 29 from simplify.simplified.utils import * 30 import os 31 32 # Location of the built-in libraries. 33 # NOTE: Change this if the package structure changes. 34 35 libdir = os.path.join(os.path.split(os.path.split(__file__)[0])[0], "lib") 36 37 # Configuration setting. 38 39 Class = SingleInstanceClass 40 #Class = MultipleInstanceClass 41 42 def set_single_instance_mode(): 43 global Class 44 Class = SingleInstanceClass 45 46 def set_multiple_instance_mode(): 47 global Class 48 Class = MultipleInstanceClass 49 50 def set_selective_multiple_instance_mode(): 51 global Class 52 Class = SelectiveMultipleInstanceClass 53 54 def set_prolific_multiple_instance_mode(): 55 global Class 56 Class = ProlificMultipleInstanceClass 57 58 # vim: tabstop=4 expandtab shiftwidth=4