ClipProc constructor

ClipProc(
  1. int parentMode,
  2. int parentMpPrec,
  3. int parentMpRound,
  4. bool printAns,
  5. bool printAssert,
  6. bool printWarn,
  7. bool gUpdateFlag,
)

Implementation

ClipProc( int parentMode, int parentMpPrec, int parentMpRound, bool printAns, bool printAssert, bool printWarn, bool gUpdateFlag ){
	_valAns   = ClipProcVal( this );
	_valSeAns = ClipProcVal( this );

	_procLine = null;

	_defLine = ClipLineData();
	_curLine = _defLine;

	_defInfo = _ClipProcInfo();
	_curInfo = _defInfo;

	_errCode  = 0;
	_errToken = null;

	_parentMode    = parentMode;
	_parentMpPrec  = parentMpPrec;
	_parentMpRound = parentMpRound;
	_angType       = ClipMath.angTypeRad;
	_angUpdateFlag = false;

	_parentAngType = ClipMath.complexAngType();
	ClipMath.setComplexAngType( _angType );

	// 各種フラグ
	_quitFlag        = false;
	_printAns        = printAns;
	_printAssert     = printAssert;
	_prevPrintAssert = printAssert;
	_printWarn       = printWarn;
	_prevPrintWarn   = printWarn;
	_gUpdateFlag     = gUpdateFlag;
	_prevGUpdateFlag = gUpdateFlag;

	// ifステートメント情報
	_statIfMode    = List.filled( 16, 0 );
	_statIfMode[0] = _statIfModeEnable;
	_statIfCnt     = 0;
	_statIfMax     = 15;

	// switchステートメント情報
	_statSwiMode    = List.filled( 16, 0 );
	_statSwiMode[0] = _statSwiModeEnable;
	_statSwiVal     = ClipProcVal.newArray( 16, this );
	_statSwiCnt     = 0;
	_statSwiMax     = 15;

	// ループ・ステートメント情報
	_statMode = _statModeNotStart;
	_stat     = null;
	_loopCnt  = 0;

	// 配列の初期化データ情報
	_initArrayFlag     = false;
	_initArrayCnt      = 0;
	_initArrayMax      = 0;
	_initArrayIndex    = 0;
	_initArrayMoveFlag = ParamBoolean();
	_initArray         = null;

	_topInc = null;
	_endInc = null;

	_topUsage = null;
	_curUsage = null;

	_endType = List.filled( 16, 0 );
	_endCnt  = 0;
}