view 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
line wrap: on
line source


from collections import namedtuple

SourceLocation = namedtuple('SourceLocation', ['row', 'col'])
SourceRange = namedtuple('SourceRange', ['p1', 'p2'])