diff --git a/Advanced Software Engineering/Advanced Software Engineering/Verbs/Flow/ForChunk.cs b/Advanced Software Engineering/Advanced Software Engineering/Verbs/Flow/ForChunk.cs
index 7373b44..c113a6a 100644
--- a/Advanced Software Engineering/Advanced Software Engineering/Verbs/Flow/ForChunk.cs
+++ b/Advanced Software Engineering/Advanced Software Engineering/Verbs/Flow/ForChunk.cs
@@ -2,22 +2,39 @@
using System.Collections.Generic;
namespace Advanced_Software_Engineering.Verbs.Flow {
+ ///
+ /// A ForChunk is similar to a . It executes a specific number of times.
+ ///
public class ForChunk : VerbChunk, IVerbChunk, IVerb {
private readonly IValue conditional;
private readonly ValueStorage valueStorage;
+ ///
+ /// A For Loop object
+ ///
+ /// The ValueStorage for increasing and decreasing the stack
+ /// Preferably , the number of times the loop should execute.
public ForChunk(ValueStorage valueStorage, IValue conditional) : base() {
this.conditional = conditional;
this.valueStorage = valueStorage;
valueStorage.IncreaseStack();
}
+ ///
+ /// A For Loop object
+ ///
+ /// The ValueStorage for increasing and decreasing the stack
+ /// Preferably , the number of times the loop should execute.
+ /// A verb to execute in a single line
public ForChunk(ValueStorage valueStorage, IValue conditional, IVerb oneLineVerb) : base(new List { oneLineVerb }) {
this.conditional = conditional;
this.valueStorage = valueStorage;
valueStorage.IncreaseStack();
}
+ ///
+ /// Executes the chunk the number of specified times
+ ///
public new void ExecuteVerb() {
int iterations = conditional.ToInt();