Beispiel #1
0
def Func(id,settinglist,type, pos):
    return Node("func", pos, settinglist, id, fracttypes.typeOfStr(type))
Beispiel #2
0
def DeclArray(type, id, indexes, pos):
    return Node("declarray", pos, indexes, id, fracttypes.typeOfStr(type))
Beispiel #3
0
def Param(id,settinglist,type,pos):    
    return Node("param", pos, settinglist, id, fracttypes.typeOfStr(type))
Beispiel #4
0
def SetType(id,t,pos):
    type = fracttypes.typeOfStr(t)
    return Node("set", pos, [id, Empty(pos)], None, type) 
Beispiel #5
0
def Decl(type, id, pos, exp=None):
    if exp == None:
        l = None
    else:
        l = [exp]
    return Node("decl", pos, l , id, fracttypes.typeOfStr(type))
Beispiel #6
0
def Func(id, settinglist, type, pos):
    return Node("func", pos, settinglist, id, fracttypes.typeOfStr(type))
Beispiel #7
0
def Param(id, settinglist, type, pos):
    return Node("param", pos, settinglist, id, fracttypes.typeOfStr(type))
Beispiel #8
0
def DeclArray(type, id, indexes, pos):
    return Node("declarray", pos, indexes, id, fracttypes.typeOfStr(type))
Beispiel #9
0
def Decl(type, id, pos, exp=None):
    if exp == None:
        l = None
    else:
        l = [exp]
    return Node("decl", pos, l, id, fracttypes.typeOfStr(type))
Beispiel #10
0
def SetType(id, t, pos):
    type = fracttypes.typeOfStr(t)
    return Node("set", pos, [id, Empty(pos)], None, type)