Permalink
Find file
Fetching contributors…
Cannot retrieve contributors at this time
16 lines (12 sloc) 510 Bytes
from nodes import *
class LabdaStatement(SimpleStatement):
def __init__(self, parent, arguments, linenr):
SimpleStatement.__init__(self, parent, linenr)
self.arguments = arguments
class FuncStatement(LabdaStatement):
def __init__(self, parent, arguments, linenr):
LabdaStatement.__init__(self, parent, arguments[1:], linenr)
self.name = arguments[0]
class LocalFuncStatement(FuncStatement):
def __init__(self, parent, arguments, linenr):
FuncStatement.__init__(self, parent, arguments, linenr)