コード例 #1
0
 public ProcedureDeclaration(IntLiteral index, TypeIdentifier returnType, Identifier identifier, List <Parameter> parameters, CompoundStatement body) : base(DeclarationType.Procedure, identifier)
 {
     Index      = index;
     ReturnType = returnType;
     Parameters = parameters;
     Body       = body;
 }
コード例 #2
0
        public override void Visit(CompoundStatement compoundStatement)
        {
            if (typeof(T) == typeof(CompoundStatement))
            {
                mCollectedNodes.Add(compoundStatement as T);
            }

            base.Visit(compoundStatement);
        }
コード例 #3
0
 public IfStatement(Expression expression, CompoundStatement body, CompoundStatement elseBody)
 {
     Condition = expression;
     Body      = body;
     ElseBody  = elseBody;
 }