annotate python/ppci/common.py @ 158:9683a4cd848f

Added some functions for code generation
author Windel Bouwman
date Fri, 08 Mar 2013 16:52:44 +0100
parents e05b2b216bfc
children 8104fc8b5e90
rev   line source
153
e05b2b216bfc Added common
Windel Bouwman
parents:
diff changeset
1
e05b2b216bfc Added common
Windel Bouwman
parents:
diff changeset
2 from collections import namedtuple
e05b2b216bfc Added common
Windel Bouwman
parents:
diff changeset
3
e05b2b216bfc Added common
Windel Bouwman
parents:
diff changeset
4 SourceLocation = namedtuple('SourceLocation', ['row', 'col'])
e05b2b216bfc Added common
Windel Bouwman
parents:
diff changeset
5 SourceRange = namedtuple('SourceRange', ['p1', 'p2'])
e05b2b216bfc Added common
Windel Bouwman
parents:
diff changeset
6