public void setConsiderBracket(bool value)
 {
     considerBracket = value;
     if (value && RTSUtil.isNullOrEmpty(brackets))
     {
         brackets = BRACKET_OPERATORS;
     }
 }
 public void setConsiderSeperator(bool value)
 {
     considerSeperator = value;
     if (value && RTSUtil.isNullOrEmpty(seperators))
     {
         seperators = SEPERATORS;
     }
 }
 public void setConsiderOperator(bool value)
 {
     considerOperator = value;
     if (value && RTSUtil.isNullOrEmpty(operators))
     {
         operators = OPERATORS;
     }
 }
 override public string ToString()
 {
     if (mCastType == null)
     {
         return(RTSUtil.linkString(' ', mSrc, mChild,
                                   RTSUtil.isNullOrEmpty(mSrc) ? null : (mSrc[0] + 1).ToString()));
     }
     else
     {
         return(RTSUtil.linkString(' ', '(', mCastType.typeName(), ')', mSrc, mChild,
                                   RTSUtil.isNullOrEmpty(mSrc) ? "" : (mSrc[0] + 1).ToString()));
     }
 }
Ejemplo n.º 5
0
 public bool loadSource(string text)
 {
     if (RTSUtil.isNullOrEmpty(text))
     {
         return(false);
     }
     mReader.Reload(text);
     mCompiling = mReader.hasNext();
     if (mCompiling)
     {
         mBuild      = true;
         mCompile    = true;
         mTempLinker = new RTSExecL();
         mCompileList.clear();
     }
     return(mCompiling);
 }
 public void SetSeperator(string seperators)
 {
     this.seperators    = seperators;
     considerSeperator &= !RTSUtil.isNullOrEmpty(seperators);
 }
 public void SetBrackets(string brackets)
 {
     this.considerBracket &= !RTSUtil.isNullOrEmpty(brackets);
     this.brackets         = brackets;
 }
 public void SetOperators(string operators)
 {
     this.considerOperator &= !RTSUtil.isNullOrEmpty(operators);
     this.operators         = operators;
 }