annotate python/ppci/__init__.py @ 152:b73bc14a3aa3

Light coupling ide and c3 frontend
author Windel Bouwman
date Sat, 02 Mar 2013 09:56:12 +0100
parents f2d980eef509
children 6b2bec5653f1
rev   line source
1
92df07bc2081 Initial import of compiler
windel
parents:
diff changeset
1 # File to make this directory a package.
92df07bc2081 Initial import of compiler
windel
parents:
diff changeset
2
106
f2d980eef509 improved code generation
Windel Bouwman
parents: 105
diff changeset
3 import sys
f2d980eef509 improved code generation
Windel Bouwman
parents: 105
diff changeset
4
99
windel
parents: 96
diff changeset
5 version = '0.0.1'
windel
parents: 96
diff changeset
6
106
f2d980eef509 improved code generation
Windel Bouwman
parents: 105
diff changeset
7 # Assert python version:
f2d980eef509 improved code generation
Windel Bouwman
parents: 105
diff changeset
8 if sys.version_info.major != 3:
f2d980eef509 improved code generation
Windel Bouwman
parents: 105
diff changeset
9 print("Needs to be run in python version 3.x")
f2d980eef509 improved code generation
Windel Bouwman
parents: 105
diff changeset
10 sys.exit(1)
f2d980eef509 improved code generation
Windel Bouwman
parents: 105
diff changeset
11
152
b73bc14a3aa3 Light coupling ide and c3 frontend
Windel Bouwman
parents: 106
diff changeset
12 from .common import SourceLocation, SourceRange
b73bc14a3aa3 Light coupling ide and c3 frontend
Windel Bouwman
parents: 106
diff changeset
13 from .errors import CompilerError, DiagnosticsManager
b73bc14a3aa3 Light coupling ide and c3 frontend
Windel Bouwman
parents: 106
diff changeset
14 from .errors import printError
b73bc14a3aa3 Light coupling ide and c3 frontend
Windel Bouwman
parents: 106
diff changeset
15