/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
  
3
  public class RootToken : Token {
4
    
5
    construct {
54 by Gustav Hartvigsson
More work torwards inperementing the parser.
6
      this.priority = Prio.ASSIGNMENT;
1 by Gustav Hartvigsson
* Initial code - far from done
7
      this.mandatory_num_child = 1;
8
      this.optional_num_child = 0;
9
    }
10
    
11
    public RootToken (Token? root = null) {
12
      base (0);
13
      this.set_child (1, root);
14
    }
15
    
57 by Gustav Hartvigsson
Made sure that no text rows exeed 80 columns.
16
    protected override void evaluate_self (Context instance)
17
                            throws GLib.Error {
1 by Gustav Hartvigsson
* Initial code - far from done
18
      Token? child = get_child (1);
19
      child.evaluate (instance);
20
      this.result_value = child.result_value;
21
      this.result_max_value = child.result_max_value;
22
      this.result_min_value = child.result_min_value;
23
      this.result_string = child.result_string;
24
      
25
    }
26
    
27
  }
28
  
29
}