Mercurial > lcfOS
view python/ppci/common.py @ 191:6b2bec5653f1
Added assembler testset
author | Windel Bouwman |
---|---|
date | Sun, 26 May 2013 15:28:07 +0200 |
parents | 8104fc8b5e90 |
children | b01429a5d695 |
line wrap: on
line source
from collections import namedtuple # Token is used in the lexical analyzer: Token = namedtuple('Token', 'typ val loc') class SourceLocation: def __init__(self, row, col, ln): self.row = row self.col = col self.length = ln SourceRange = namedtuple('SourceRange', ['p1', 'p2'])