Ejemplo 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()
Ejemplo 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
Ejemplo 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
Ejemplo n.º 4
0
Archivo: IO.py Proyecto: 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)
Ejemplo 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
Ejemplo n.º 6
0
Archivo: Select.py Proyecto: 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()
Ejemplo 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       = ")"
Ejemplo n.º 8
0
Archivo: If.py Proyecto: 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()
Ejemplo n.º 9
0
Archivo: IO.py Proyecto: 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()
Ejemplo 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
Ejemplo 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
Ejemplo 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
Ejemplo 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     = []
Ejemplo 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)
Ejemplo 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
Ejemplo 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
Ejemplo 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
Ejemplo n.º 18
0
Archivo: If.py Proyecto: 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
Ejemplo n.º 19
0
Archivo: If.py Proyecto: 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]
Ejemplo 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
Ejemplo 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
Ejemplo 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
Ejemplo n.º 23
0
 def __init__(self, sLabel=None, loc=None, sContains="CONTAINS", nIndent=0):
     BasicStatement.__init__(self, sLabel, loc, nIndent)
     self.sContains = sContains
Ejemplo 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
Ejemplo n.º 25
0
Archivo: Select.py Proyecto: 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
Ejemplo n.º 26
0
 def __init__(self, loc=None, sInterface='INTERFACE', sAbstract=None,
              nIndent=0):
     BasicStatement.__init__(self, None, loc, nIndent)
     self.l = [sAbstract, sInterface]
Ejemplo n.º 27
0
Archivo: IO.py Proyecto: 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       = []
Ejemplo 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)
Ejemplo n.º 29
0
Archivo: Module.py Proyecto: 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
Ejemplo n.º 30
0
 def __init__(self, sComment, loc):
     BasicStatement.__init__(self, None, loc)
     UserString.__init__(self, sComment)