예제 #1
0
 public NumberNode( string val )
     : base()
 {
     mValue = new KnightyCodeObject( );
     double r;
     double.TryParse( val, out r );
     mValue.AsDouble = r;
 }
예제 #2
0
        public override KnightyCodeObject Evaluate( Context context )
        {
            context.Print( mValue.Evaluate( context ).Value.ToString( ) );

            KnightyCodeObject obj = new KnightyCodeObject( );
            obj.AsBool = true;

            return obj;
        }
예제 #3
0
 public void SetLocal( string name, KnightyCodeObject val )
 {
     mLocals.Add( name, val );
 }