コード例 #1
0
ファイル: Statements.py プロジェクト: hiker/stan
 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()
コード例 #2
0
ファイル: Statements.py プロジェクト: hiker/stan
 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
コード例 #3
0
ファイル: Blockdata.py プロジェクト: hiker/stan
 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
コード例 #4
0
ファイル: IO.py プロジェクト: 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)
コード例 #5
0
ファイル: Declaration.py プロジェクト: hiker/stan
 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
コード例 #6
0
ファイル: Select.py プロジェクト: 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()
コード例 #7
0
ファイル: Statements.py プロジェクト: hiker/stan
 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       = ")"
コード例 #8
0
ファイル: If.py プロジェクト: 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()
コード例 #9
0
ファイル: IO.py プロジェクト: 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()
コード例 #10
0
ファイル: Subroutine.py プロジェクト: hiker/stan
 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
コード例 #11
0
ファイル: Statements.py プロジェクト: hiker/stan
 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
コード例 #12
0
ファイル: Declaration.py プロジェクト: hiker/stan
 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
コード例 #13
0
ファイル: Function.py プロジェクト: hiker/stan
 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     = []
コード例 #14
0
ファイル: Declaration.py プロジェクト: hiker/stan
 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)
コード例 #15
0
ファイル: Statements.py プロジェクト: hiker/stan
 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
コード例 #16
0
ファイル: If.py プロジェクト: hiker/stan
 def __init__(self, sLabel=None, loc=None, sElse=None, sIf=None, nIndent=0):
     BasicStatement.__init__(self, sLabel, loc, nIndent, isDeclaration=0)
     self.lElseIf = [sElse, sIf]
     self.lExpr   = []
     self.sThen   = None
     self.sName   = None
コード例 #17
0
ファイル: Statements.py プロジェクト: hiker/stan
 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
コード例 #18
0
ファイル: If.py プロジェクト: 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]
コード例 #19
0
ファイル: If.py プロジェクト: 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
コード例 #20
0
ファイル: Statements.py プロジェクト: hiker/stan
 def __init__(self, sLabel=None, loc=None, sCont="CONTINUE", nIndent=0):
     BasicStatement.__init__(self, sLabel, loc, nIndent, isDeclaration=0)
     self.sCont = sCont
コード例 #21
0
ファイル: Statements.py プロジェクト: hiker/stan
 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
コード例 #22
0
ファイル: Statements.py プロジェクト: hiker/stan
 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
コード例 #23
0
ファイル: Statements.py プロジェクト: hiker/stan
 def __init__(self, sLabel=None, loc=None, sContains="CONTAINS", nIndent=0):
     BasicStatement.__init__(self, sLabel, loc, nIndent)
     self.sContains = sContains
コード例 #24
0
ファイル: Select.py プロジェクト: 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
コード例 #25
0
ファイル: Interface.py プロジェクト: hiker/stan
 def __init__(self, loc=None, sEnd='END', sInterface='INTERFACE', nIndent=0):
     BasicStatement.__init__(self, None, loc, nIndent)
     self.l     = [sEnd, sInterface]
     self.sName = None
コード例 #26
0
ファイル: Interface.py プロジェクト: hiker/stan
 def __init__(self, loc=None, sInterface='INTERFACE', sAbstract=None,
              nIndent=0):
     BasicStatement.__init__(self, None, loc, nIndent)
     self.l = [sAbstract, sInterface]
コード例 #27
0
ファイル: IO.py プロジェクト: 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       = []
コード例 #28
0
ファイル: ProgUnit.py プロジェクト: hiker/stan
 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)
コード例 #29
0
ファイル: Module.py プロジェクト: 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
コード例 #30
0
ファイル: SpecialStatements.py プロジェクト: hiker/stan
 def __init__(self, sComment, loc):
     BasicStatement.__init__(self, None, loc)
     UserString.__init__(self, sComment)