BadScript 2
Loading...
Searching...
No Matches
BadContinueExpression.cs
Go to the documentation of this file.
1
using
BadScript2.Common
;
2
using
BadScript2.Runtime
;
3
using
BadScript2.Runtime.Objects
;
4
5
namespace
BadScript2.Parser.Expressions.ControlFlow
;
6
10
public
class
BadContinueExpression
:
BadExpression
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
}
BadScript2.Common.BadSourcePosition
Describes a specific position inside a source file.
Definition
BadSourcePosition.cs:9
BadScript2.Parser.Expressions.BadExpression
Base Implementation for all Expressions used inside the Script.
Definition
BadExpression.cs:23
BadScript2.Parser.Expressions.ControlFlow.BadContinueExpression
Implements the Break Expression that is used to skip a loop iteraion.
Definition
BadContinueExpression.cs:11
BadScript2.Parser.Expressions.ControlFlow.BadContinueExpression.InnerExecute
override IEnumerable< BadObject > InnerExecute(BadExecutionContext context)
Definition
BadContinueExpression.cs:19
BadScript2.Parser.Expressions.ControlFlow.BadContinueExpression.GetDescendants
override IEnumerable< BadExpression > GetDescendants()
Definition
BadContinueExpression.cs:27
BadScript2.Parser.Expressions.ControlFlow.BadContinueExpression.BadContinueExpression
BadContinueExpression(BadSourcePosition position)
Constructor of the Continue Expression.
Definition
BadContinueExpression.cs:16
BadScript2.Runtime.BadExecutionContext
The Execution Context. Every execution of a script needs a context the script is running in....
Definition
BadExecutionContext.cs:16
BadScript2.Runtime.BadExecutionContext.Scope
BadScope Scope
The Root Scope of the Context.
Definition
BadExecutionContext.cs:29
BadScript2.Runtime.BadScope.SetContinue
void SetContinue()
Sets the continue keyword inside this scope.
Definition
BadScope.cs:698
BadScript2.Runtime.Objects.BadObject
The Base Class for all BadScript Objects.
Definition
BadObject.cs:14
BadScript2.Runtime.Objects.BadObject.Null
static readonly BadObject Null
The Null Value for the BadScript Language.
Definition
BadObject.cs:28
BadScript2.Common
Contains Shared Data Structures and Functionality.
Definition
BadParseException.cs:1
BadScript2.Parser.Expressions.ControlFlow
Contains the Controlflow Expressions for the BadScript2 Language.
Definition
BadBreakExpression.cs:8
BadScript2.Runtime.Objects
Contains the Runtime Objects.
Definition
BadArray.cs:10
BadScript2.Runtime
Contains the Runtime Implementation.
Definition
BadExecutionContext.cs:8
src
BadScript2
Parser
Expressions
ControlFlow
BadContinueExpression.cs
Generated by
1.9.8