23 public override string Name =>
"remote";
42 return Task.FromResult(0);
84 foreach (
BadObject _
in ctx.Execute(parsed))
Exposes the BadScript Runtime Functionality to Consumers.
BadExecutionContext CreateContext(string workingDirectory)
Creates a new Context with the configured Options.
static IEnumerable< BadExpression > Parse(string source)
Parses the specified source.
Wrapper class for the console abstraction.
static void Clear()
Clears the console.
static void WriteLine(string str)
Writes a string to the console and appends a newline.
Implements the Client for the Remote Console.
void Start()
Starts the Client.
static IBadNetworkConsoleClientCommandParser DefaultParserFactory(BadNetworkConsoleClient client)
The Default Parser Factory.
void Stop()
Stops the Client.
Implements a Console System that uses a settings object of Type T.
BadExecutionContext CreateContext()
Creates a new Context.
readonly BadNetworkConsoleClient m_Client
The Client to use.
BadScriptCommandParser(BadRuntime runtime, BadNetworkConsoleClient client)
Creates a new ScriptCommandParser instance.
readonly BadRuntime m_Runtime
The Runtime to use.
BadExecutionContext GetContext()
Returns the Current Context.
void ExecuteCommand(string command)
Executes a command on the client.
BadExecutionContext? m_Context
The Current Context.
Connects to a remote console.
IBadNetworkConsoleClientCommandParser CreateScriptParser(BadNetworkConsoleClient client)
Creates a new Script Command Parser.
override Task< int > Run(BadRemoteConsoleSystemSettings settings)
BadRemoteConsoleSystem(BadRuntime runtime)
Creates a new BadRemoteConsoleSystem instance.
Remote Console System Settings.
string Host
The Host to connect to.
int Port
The Host port to connect to.
Public interface for the filesystem abstraction of the BadScript Engine.
static IFileSystem Instance
File System implementation.
The Execution Context. Every execution of a script needs a context the script is running in....
BadScope Scope
The Root Scope of the Context.
BadScope CreateChild(string name, BadScope? caller, bool? useVisibility, BadScopeFlags flags=BadScopeFlags.RootScope)
Creates a subscope of the current scope.
BadTable GetTable()
Returns the Variable Table of the current scope.
The Base Class for all BadScript Objects.
Implements a Table Structure for the BadScript Language.
override string ToSafeString(List< BadObject > done)
Used to parse commands on the client.
string GetCurrentDirectory()
Returns the Current Directory.
Contains the Console Client Implementation for the Remote Console Abstraction over TCP.
Contains a Console Abstraction Layer to be able to Simulate Console Input/Output over the Network.
Contains the 'run' console command implementation.
Contains IO Implementation for the BadScript2 Runtime.
Contains the Expressions for the BadScript2 Language.
Contains the Extension Classes for Functions.
Contains the Runtime Objects.
Contains the Runtime Implementation.