コード例 #1
0
ファイル: TypeVisitor.cs プロジェクト: Ryuuke/Ryu
        public override void Visit(PtrDerefAST ptrDerefAST)
        {
            ptrDerefAST.Expression.Accept(this);

            var PointerType = _stateInfo.currentType as PtrTypeAST;

            if (PointerType == null)
            {
                throw new Exception("Cannot dereference a non-pointer type");
            }

            _stateInfo.currentType = PointerType.Type;
        }
コード例 #2
0
ファイル: CodeGenVisitor.cs プロジェクト: Ryuuke/Ryu
 public override void Visit(PtrDerefAST ptrDerefAST)
 {
 }
コード例 #3
0
 public virtual void Visit(PtrDerefAST ptrDerefAST)
 {
 }