public NumberNode( string val ) : base() { mValue = new KnightyCodeObject( ); double r; double.TryParse( val, out r ); mValue.AsDouble = r; }
public override KnightyCodeObject Evaluate( Context context ) { context.Print( mValue.Evaluate( context ).Value.ToString( ) ); KnightyCodeObject obj = new KnightyCodeObject( ); obj.AsBool = true; return obj; }
public void SetLocal( string name, KnightyCodeObject val ) { mLocals.Add( name, val ); }