annotate python/ppci/common.py @ 153:e05b2b216bfc

Added common
author Windel Bouwman
date Sat, 02 Mar 2013 09:58:31 +0100
parents
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