Exemplo n.º 1
0
 def __init__(self, sLabel=None, loc=None, sNullify="NULLIFY",
              sParOpen='(', nIndent=0):
     BasicStatement.__init__(self, sLabel, loc, nIndent, isDeclaration=0)
     self.sNullify  = sNullify
     self.sParOpen  = sParOpen
     self.sParClose = None
     self.lPointers = DoubleList()
Exemplo n.º 2
0
 def __init__(self, sLabel=None, loc=None, nIndent=0, lhs=None,
              sEqual='=', rhs=None, bNoIndent=None):
     BasicStatement.__init__(self, sLabel, loc, nIndent, isDeclaration=0)
     self.lhs       = lhs
     self.sEqual    = sEqual
     self.rhs       = rhs
     self.bNoIndent = bNoIndent
Exemplo n.º 3
0
 def __init__(self, loc=None, sEnd='END', sBlock='BLOCK', sData='DATA',
              sName=None, nIndent=0):
     BasicStatement.__init__(self, None, loc, nIndent)
     self.sEnd   = sEnd
     self.sBlock = sBlock
     self.sData  = sData
     self.sName  = sName
Exemplo n.º 4
0
Arquivo: IO.py Projeto: hiker/stan
 def __init__(self, sLabel=None, loc=None, nIndent=0, sKeyword="",
              sParOpen=None, opt=None):
     BasicStatement.__init__(self, sLabel, loc, nIndent, isDeclaration=0)
     self.sKeyword  = sKeyword
     self.sParOpen  = sParOpen
     self.sParClose = ')'
     self.lParams   = DoubleList()
     if opt: self.AddIOOpt(opt)
Exemplo n.º 5
0
 def __init__(self, sImplicit="IMPLICIT", loc=None, nIndent=0):
     BasicStatement.__init__(self, None, loc, nIndent)
     self.sImplicit = sImplicit
     self.sNone     = None
     self.type      = None
     self.l         = DoubleList()
     self.sParOpen  = None
     self.sParClose = None
Exemplo n.º 6
0
Arquivo: Select.py Projeto: hiker/stan
 def __init__(self, sLabel=None, loc=None, sCase='CASE',  nIndent=0):
     BasicStatement.__init__(self, sLabel, loc, nIndent, isDeclaration=0)
     self.sCase     = sCase
     self.sName     = None
     self.sDefault  = None           # for DEFAULT
     self.sParOpen  = None
     self.sParClose = None
     self.lSelector = DoubleList()
Exemplo n.º 7
0
 def __init__(self, sLabel=None, loc=None, sOp='ALLOCATE',sParOpen='(',
              nIndent=0):
     BasicStatement.__init__(self, sLabel, loc, nIndent, isDeclaration=0)
     self.sOp             = sOp
     self.sParOpen        = sParOpen
     self.lVars           = DoubleList()
     self.lOptions        = DoubleList()
     self.sParClose       = ")"
Exemplo n.º 8
0
Arquivo: If.py Projeto: hiker/stan
 def __init__(self, sLabel=None, loc=None, sIf="IF", sParOpen='(',
              ifCond=None, sParClose=')', nIndent=0):
     BasicStatement.__init__(self, sLabel, loc, nIndent, isDeclaration=0)
     self.sIf       = sIf
     self.sParOpen  = sParOpen
     self.ifCond    = ifCond
     self.sParClose = sParClose
     self.lLabels   = DoubleList()
Exemplo n.º 9
0
Arquivo: IO.py Projeto: hiker/stan
 def __init__(self, sLabel=None, loc=None, sPrint="PRINT", nIndent=0,
              format=None):
     BasicStatement.__init__(self, sLabel, loc, nIndent, isDeclaration=0)
     self.sPrint  = sPrint
     self.format  = format
     if format:
         self.sComma  = ","              # First comma after format
     else:
         self.sComma  = None             # First comma after format
     self.lIO     = DoubleList()
Exemplo n.º 10
0
 def __init__(self, loc=None, lPrefix=[], sSub="SUBROUTINE", sName="",
              nIndent=0, oSub = None):
     BasicStatement.__init__(self, None, loc, nIndent)
     self.lPrefix     = lPrefix
     self.sSub        = sSub
     self.sName       = sName
     self.lArgs       = DoubleList()
     self.sParOpen    = None
     self.sParClose   = None
     self.oSub        = oSub
Exemplo n.º 11
0
 def __init__(self, sLabel=None, loc=None, sGo="GO", sTo="TO",
              sParOpen="(", nIndent=0):
     BasicStatement.__init__(self, sLabel, loc, nIndent, isDeclaration=0)
     self.sGo        = sGo
     self.sTo        = sTo
     self.sParOpen   = sParOpen
     self.sParClose  = ""
     self.sComma     = ""
     self.lLabels    = DoubleList()
     self.oExp       = None
Exemplo n.º 12
0
 def __init__(self, loc, sUse="USE", nIndent=0):
     BasicStatement.__init__(self, None, loc, nIndent)
     self.sUse        = sUse
     self.lNature     = []
     self.lColons     = []
     self.lOnly       = DoubleList()
     self.lOnlyString = ''
     self.lRename     = DoubleList()
     self.sComma      = None
     self.sName       = None
Exemplo n.º 13
0
 def __init__(self, loc=None, nIndent=0, lType=None, sFunc="FUNCTION", sName="",
              oFunc = None):
     BasicStatement.__init__(self, None, loc, nIndent, isDeclaration=0)
     self.sFunc       = sFunc
     self.sName       = sName
     self.lArgs       = DoubleList()
     self.sParOpen    = None
     self.sParClose   = None
     self.lType       = lType
     self.oFunc       = oFunc
     self.lResult     = []
Exemplo n.º 14
0
 def __init__(self, sType, sComma=None, loc=None, nIndent=0, var=None,
              attribute=None):
     BasicStatement.__init__(self, None, loc, nIndent)
     self.sType        = sType
     self.sComma       = sComma
     self.lAttributes  = DoubleList()
     self.lColons      = []
     self.lVars        = DoubleList()
     if var:
         self.AppendVariable(var)
     if attribute:
         self.AddAttribute(attribute)
Exemplo n.º 15
0
    def __repr__(self):
	mystring = ""
	for l in self.lAllBlocks:
	    if self.bHasCall(l):
		for i in l:
		    mystring = mystring + BasicStatement.__repr__(i) + "\n"
        return mystring
Exemplo n.º 16
0
 def __init__(self, sLabel=None, loc=None, sStop="STOP", nIndent=0):
     BasicStatement.__init__(self, sLabel, loc, nIndent, isDeclaration=0)
     self.sStop    = sStop
     self.stopcode = None
Exemplo n.º 17
0
 def __init__(self, sLabel=None, loc=None, sReturn="RETURN", nIndent=0):
     BasicStatement.__init__(self, sLabel, loc, nIndent, isDeclaration=0)
     self.sReturn  = sReturn
     self.retvalue = None
Exemplo n.º 18
0
Arquivo: If.py Projeto: hiker/stan
 def __init__(self, sLabel=None, loc=None, sElse="ELSE", nIndent=0):
     BasicStatement.__init__(self, sLabel, loc, nIndent, isDeclaration=0)
     self.sElse = sElse
     self.sName = None
Exemplo n.º 19
0
Arquivo: If.py Projeto: hiker/stan
 def __init__(self, sLabel=None, loc=None, sIf="IF", sParOpen='(',
              oIfCond=None, sParClose=')', oStatement=None, nIndent=0):
     BasicStatement.__init__(self, sLabel, loc, nIndent, isDeclaration=0)
     self.sIf        = sIf
     self.l          = [sIf, sParOpen, oIfCond, sParClose, oStatement]
Exemplo n.º 20
0
 def __init__(self, loc=None, sEnd='END', sInterface='INTERFACE', nIndent=0):
     BasicStatement.__init__(self, None, loc, nIndent)
     self.l     = [sEnd, sInterface]
     self.sName = None
Exemplo n.º 21
0
 def __init__(self, sLabel=None, loc=None, sGo="GO", sTo="TO",
              sGotoLabel=None, nIndent=0):
     BasicStatement.__init__(self, sLabel, loc, nIndent, isDeclaration=0)
     self.sGo        = sGo
     self.sTo        = sTo
     self.sGotoLabel = sGotoLabel
Exemplo n.º 22
0
 def __init__(self, sLabel=None, loc=None, sCont="CONTINUE", nIndent=0):
     BasicStatement.__init__(self, sLabel, loc, nIndent, isDeclaration=0)
     self.sCont = sCont
Exemplo n.º 23
0
 def __init__(self, sLabel=None, loc=None, sContains="CONTAINS", nIndent=0):
     BasicStatement.__init__(self, sLabel, loc, nIndent)
     self.sContains = sContains
Exemplo n.º 24
0
 def __init__(self, sLabel=None, loc=None, sCall="CALL", sName=None,
              nIndent=0):
     BasicStatement.__init__(self, sLabel, loc, nIndent, isDeclaration=0)
     FunctionCall.__init__(self, sName)
     self.sCall = sCall
Exemplo n.º 25
0
Arquivo: Select.py Projeto: hiker/stan
 def __init__(self, sLabel=None, loc=None, sEnd='END', sSelect='CASE',  nIndent=0):
     BasicStatement.__init__(self, sLabel, loc, nIndent, isDeclaration=0)
     self.lEndCase  = [sEnd, sSelect]
     self.sName     = None
Exemplo n.º 26
0
 def __init__(self, loc=None, sInterface='INTERFACE', sAbstract=None,
              nIndent=0):
     BasicStatement.__init__(self, None, loc, nIndent)
     self.l = [sAbstract, sInterface]
Exemplo n.º 27
0
Arquivo: IO.py Projeto: hiker/stan
 def __init__(self, sLabel=None, loc=None, sFormat="FORMAT", nIndent=0):
     BasicStatement.__init__(self, sLabel, loc, nIndent, isDeclaration=0)
     self.sFormat = sFormat
     self.l       = []
Exemplo n.º 28
0
 def __init__(self, sLabel=None, loc=None, sEnd="END", nIndent=0, sName=None):
     self.sEnd  = sEnd
     self.sType = None
     self.sName = sName
     BasicStatement.__init__(self, sLabel, loc, nIndent)
Exemplo n.º 29
0
Arquivo: Module.py Projeto: hiker/stan
 def __init__(self, loc=None, sModule="MODULE", sName="",
              nIndent=0, oModule = None):
     BasicStatement.__init__(self, None, loc, nIndent)
     self.sModule     = sModule
     self.sName       = sName
     self.oModule     = oModule
Exemplo n.º 30
0
 def __init__(self, sComment, loc):
     BasicStatement.__init__(self, None, loc)
     UserString.__init__(self, sComment)