BadScript 2
Loading...
Searching...
No Matches
BadContinueExpression.cs
Go to the documentation of this file.
4
6
11{
16 public BadContinueExpression(BadSourcePosition position) : base(false, position) { }
17
19 protected override IEnumerable<BadObject> InnerExecute(BadExecutionContext context)
20 {
21 context.Scope.SetContinue();
22
23 yield return BadObject.Null;
24 }
25
27 public override IEnumerable<BadExpression> GetDescendants()
28 {
29 yield break;
30 }
31}
Describes a specific position inside a source file.
Base Implementation for all Expressions used inside the Script.
Implements the Break Expression that is used to skip a loop iteraion.
override IEnumerable< BadObject > InnerExecute(BadExecutionContext context)
BadContinueExpression(BadSourcePosition position)
Constructor of the Continue Expression.
The Execution Context. Every execution of a script needs a context the script is running in....
BadScope Scope
The Root Scope of the Context.
void SetContinue()
Sets the continue keyword inside this scope.
Definition BadScope.cs:698
The Base Class for all BadScript Objects.
Definition BadObject.cs:14
static readonly BadObject Null
The Null Value for the BadScript Language.
Definition BadObject.cs:28
Contains Shared Data Structures and Functionality.
Contains the Controlflow Expressions for the BadScript2 Language.
Contains the Runtime Objects.
Definition BadArray.cs:10
Contains the Runtime Implementation.