/vqdr/trunk

To get this branch, use:
bzr branch http://gegoxaren.bato24.eu/bzr/vqdr/trunk
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
namespace VQDR.Expression {
  
  public class RootToken : Token {
    
    construct {
      this.priority = 0;
      this.mandatory_num_child = 1;
      this.optional_num_child = 0;
    }
    
    public RootToken (Token? root = null) {
      base (0);
      this.set_child (1, root);
    }
    
    protected override void evaluate_self (Context instance) throws GLib.Error {
      Token? child = get_child (1);
      child.evaluate (instance);
      this.result_value = child.result_value;
      this.result_max_value = child.result_max_value;
      this.result_min_value = child.result_min_value;
      this.result_string = child.result_string;
      
    }
    
  }
  
}