Mercurial > lcfOS
view python/ppci/common.py @ 157:8f3924b6076e
Added some code generator things
author | Windel Bouwman |
---|---|
date | Sun, 03 Mar 2013 18:14:35 +0100 |
parents | e05b2b216bfc |
children | 8104fc8b5e90 |
line wrap: on
line source
from collections import namedtuple SourceLocation = namedtuple('SourceLocation', ['row', 'col']) SourceRange = namedtuple('SourceRange', ['p1', 'p2'])