BadScript 2
Loading...
Searching...
No Matches
BadScript2.Runtime Namespace Reference

Contains the Runtime Implementation. More...

Namespaces

namespace  Error
 Contains the Error Objects for the BadScript2 Language.
 
namespace  Interop
 Contains the Interop Abstractions and Implementations for the BadScript2 Language.
 
namespace  Module
 
namespace  Objects
 Contains the Runtime Objects.
 
namespace  Settings
 Contains Runtime Settings Objects.
 
namespace  VirtualMachine
 Contains the Virtual Machine Implementation.
 

Classes

class  BadExecutionContext
 The Execution Context. Every execution of a script needs a context the script is running in. It is responsible for defining the global scope and the global variables. More...
 
class  BadExecutionContextOptions
 Provides settings for creating a new BadExecutionContext More...
 
class  BadMemberChangedEvent
 
class  BadMemberChangeEvent
 
class  BadMemberChangingEvent
 
class  BadMemberInfo
 
class  BadScope
 Implements the Scope for the Script Engine. More...
 

Enumerations

enum  BadScopeFlags {
  None = 0 , AllowReturn = 1 , AllowBreak = 2 , AllowContinue = 4 ,
  AllowThrow = 8 , CaptureReturn = 16 , CaptureBreak = 32 , CaptureContinue = 64 ,
  CaptureThrow = 128 , Returnable = AllowReturn | CaptureReturn , Breakable = AllowBreak | CaptureBreak , Continuable = AllowContinue | CaptureContinue ,
  Throwable = AllowThrow , RootScope = Throwable
}
 Defines Different Behaviours for the Current Scope. More...
 

Detailed Description

Contains the Runtime Implementation.

Enumeration Type Documentation

◆ BadScopeFlags

Defines Different Behaviours for the Current Scope.

Enumerator
None 

No Special Behaviour.

AllowReturn 

Allows the usage of the Return Keyword.

AllowBreak 

Allows the usage of the Break Keyword.

AllowContinue 

Allows the usage of the Continue Keyword.

AllowThrow 

Allows the usage of the Throw Keyword.

CaptureReturn 

Indicates that the current scope should capture the return and should not pass it to the parent scope.

CaptureBreak 

Indicates that the current scope should capture the break and should not pass it to the parent scope.

CaptureContinue 

Indicates that the current scope should capture the continue and should not pass it to the parent scope.

CaptureThrow 

Indicates that the current scope should capture the throw and should not pass it to the parent scope.

Returnable 

Shorthand for AllowReturn | CaptureReturn.

Breakable 

Shorthand for AllowBreak | CaptureBreak.

Continuable 

Shorthand for AllowContinue | CaptureContinue.

Throwable 

Shorthand for AllowThrow.

RootScope 

Shorthand for Root Scope.

Definition at line 7 of file BadScopeFlags.cs.

8{
12 None = 0,
13
17 AllowReturn = 1,
18
22 AllowBreak = 2,
23
27 AllowContinue = 4,
28
32 AllowThrow = 8,
33
34
38 CaptureReturn = 16,
39
43 CaptureBreak = 32,
44
48 CaptureContinue = 64,
49
53 CaptureThrow = 128,
54
59
64
69
74
79}
@ Returnable
Shorthand for AllowReturn | CaptureReturn.
@ RootScope
Shorthand for Root Scope.
@ CaptureBreak
Indicates that the current scope should capture the break and should not pass it to the parent scope.
@ Continuable
Shorthand for AllowContinue | CaptureContinue.
@ Breakable
Shorthand for AllowBreak | CaptureBreak.
@ AllowReturn
Allows the usage of the Return Keyword.
@ CaptureReturn
Indicates that the current scope should capture the return and should not pass it to the parent scope...
@ AllowBreak
Allows the usage of the Break Keyword.
@ AllowContinue
Allows the usage of the Continue Keyword.
@ CaptureThrow
Indicates that the current scope should capture the throw and should not pass it to the parent scope.
@ AllowThrow
Allows the usage of the Throw Keyword.
@ Throwable
Shorthand for AllowThrow.
@ CaptureContinue
Indicates that the current scope should capture the continue and should not pass it to the parent sco...