/vqdr/trunk

To get this branch, use:
bzr branch http://gegoxaren.bato24.eu/bzr/vqdr/trunk
1 by Gustav Hartvigsson
* Initial code - far from done
1
namespace VQDR.Expression {
2
  public class ConstantValueToken : ValueToken {
3
    
4
    construct {
14 by Gustav Hartvigsson
* Use enum instead of static values for the priority of operations.
5
      this.priority = Prio.VALUE;
23 by Gustav Hartvigsson
* Added DiceOperatiorToken
6
      mandatory_num_child = 0;
1 by Gustav Hartvigsson
* Initial code - far from done
7
    }
8
    
52.1.3 by Gustav Hartvigsson
int -> int32
9
    public ConstantValueToken (int64 val, int32 position) {
1 by Gustav Hartvigsson
* Initial code - far from done
10
      base (position);
12.1.1 by Gustav Hartvigsson
* Switch to using FastNumber instead of something else.
11
      this.result_value.number = val;
12
      this.result_min_value.number = val;
13
      this.result_max_value.number = val;
1 by Gustav Hartvigsson
* Initial code - far from done
14
    }
15
    
16
    protected override void evaluate_self (Context instance) throws GLib.Error {
17
      this.result_string = this.result_value.to_string ();
18
    }
19
    
20
  }
21
}