toning down some things

This commit is contained in:
Paul Tagliamonte 2012-12-28 13:59:24 -05:00
parent 54e6c30eff
commit 34d5d688ba
2 changed files with 2 additions and 2 deletions

View File

@ -135,7 +135,7 @@ class Map(State):
self.nodes.append(_resolve_atom(self.bulk, self))
if (len(self.nodes) % 2) != 0:
raise Exception("Hash map is fucked")
raise LexException("Hash map is screwed up")
ret = HYMap({})
i = iter(self.nodes)

View File

@ -7,5 +7,5 @@ def tokenize(buff):
m = Machine(Idle)
m.process(buff)
if type(m.state) != Idle:
raise LexException("End of file.")
raise LexException("Reached end of file before we were done parsing")
return m.nodes