comparison python/c3/parser.py @ 284:05184b95fa16

Moved tests to seperate folder
author Windel Bouwman
date Fri, 15 Nov 2013 13:43:22 +0100
parents 02385f62f250
children a747a45dcd78
comparison
equal deleted inserted replaced
283:c9781c73e7e2 284:05184b95fa16
59 name = self.Consume('ID').val 59 name = self.Consume('ID').val
60 self.mod.imports.append(name) 60 self.mod.imports.append(name)
61 self.Consume(';') 61 self.Consume(';')
62 62
63 def parsePackage(self): 63 def parsePackage(self):
64 self.Consume('package') 64 self.Consume('module')
65 name = self.Consume('ID') 65 name = self.Consume('ID')
66 self.Consume(';') 66 self.Consume(';')
67 self.mod = astnodes.Package(name.val, name.loc) 67 self.mod = astnodes.Package(name.val, name.loc)
68 self.currentPart = self.mod 68 self.currentPart = self.mod
69 while self.Peak != 'END': 69 while self.Peak != 'END':