Mercurial > lcfOS
comparison ide/compiler/parser.py @ 15:de004f808e56
Fixup in multidocument area stuff
author | windel |
---|---|
date | Tue, 15 Nov 2011 07:35:00 +0100 |
parents | 2db4d2b362e6 |
children |
comparison
equal
deleted
inserted
replaced
11:607898120eb1 | 15:de004f808e56 |
---|---|
35 return True | 35 return True |
36 return False | 36 return False |
37 | 37 |
38 def NextToken(self): | 38 def NextToken(self): |
39 self.token = self.tokens.__next__() | 39 self.token = self.tokens.__next__() |
40 # TODO: store filename in location? | |
40 self.location = (self.token.row, self.token.col) | 41 self.location = (self.token.row, self.token.col) |
41 | 42 |
42 # Helpers to find location of the error in the code: | 43 # Helpers to find location of the error in the code: |
43 def setLocation(self, obj, location): | 44 def setLocation(self, obj, location): |
44 obj.location = location | 45 obj.location = location |