# Path: chips/compiler/exceptions.py
# class C2CHIPError(Exception):
# 
#     def __init__(self, message, filename=None, lineno=None):
#         self.message = message
#         if filename is not None:
#             self.filename = os.path.abspath(filename)
#         else:
#             self.filename = None
#         self.lineno = lineno
# 
#     def __str__(self):
#         return self.message + " in line %s at file %s" % (
#             self.lineno,
#             self.filename
#         )


import os.path
import subprocess
from chips.compiler.exceptions import C2CHIPError
__author__ = "Jon Dawson"
__copyright__ = "Copyright (C) 2012, Jonathan P Dawson"
__version__ = "0.1"



operators = [
    "!", "~", "+", "-", "*", "/", "//", "%", "=", "==", "<", ">", "<=", ">=",
    "!=", "|", "&", "^", "||", "&&", "(", ")", "{", "}", "[", "]", ";", "<<",

# Path: chips/compiler/exceptions.py
# class C2CHIPError(Exception):
# 
#     def __init__(self, message, filename=None, lineno=None):
#         self.message = message
#         if filename is not None:
#             self.filename = os.path.abspath(filename)
#         else:
#             self.filename = None
#         self.lineno = lineno
# 
#     def __str__(self):
#         return self.message + " in line %s at file %s" % (
#             self.lineno,
#             self.filename
#         )


# Path: chips/compiler/tokens.py
import os.path
import subprocess
from chips.compiler.exceptions import C2CHIPError

__author__ = "Jon Dawson"
__copyright__ = "Copyright (C) 2012, Jonathan P Dawson"
__version__ = "0.1"



operators = [
    "!", "~", "+", "-", "*", "/", "//", "%", "=", "==", "<", ">", "<=", ">=",
    "!=", "|", "&", "^", "||", "&&", "(", ")", "{", "}", "[", "]", ";", "<<",

    ">>", ",", "+=", "-=", "*=", "/=", "%=", "&=", "|=", "<<=", ">>=", "^=",