public override void Execute( Command command, Thread thread, Scope scope ) { char input = Console.ReadKey().KeyChar; if ( command.Identifier != "" ) scope[ command.Identifier ] = TLObject.Convert( scope[ command.Identifier ].GetType(), new TLByt( (byte) input ) ); thread.Advance(); }
public override void Execute( Command command, Thread thread, Scope scope ) { String input = Console.ReadLine(); if ( command.Identifier != "" ) scope[ command.Identifier ] = TLObject.Convert( scope[ command.Identifier ].GetType(), new TLStr( input ) ); thread.Advance(); }
public override void Execute( Command command, Thread thread, Scope scope ) { #if DEBUG ThreadLang.PrintMessage( command.ParamExpression.ToString() + " = " + command.ParamExpression.Evaluate( scope ).ToString() ); #else ThreadLang.PrintMessage( command.ParamExpression.Evaluate( scope ).ToString() ); #endif thread.Advance(); }