/vqdr/trunk

To get this branch, use:
bzr branch http://gegoxaren.bato24.eu/bzr/vqdr/trunk

« back to all changes in this revision

Viewing changes to src/libvqdr/value/value_token.vala

  • Committer: Gustav Hartvigsson
  • Date: 2022-06-01 12:30:01 UTC
  • mfrom: (52.1.3 int64)
  • Revision ID: gustav.hartvigsson@gmail.com-20220601123001-b5xs60wwym810hg1
Merged: lp:~gustav.hartvigsson/vqdr/int64

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
namespace VQDR.Expression {
2
2
  
3
3
  public abstract class ValueToken : Token {
4
 
    protected ValueToken (int position) {
 
4
    protected ValueToken (int32 position) {
5
5
      base (position);
6
6
    }
7
7
    
8
 
    public static ValueToken? init_constant_token (long val, int position) {
 
8
    public static ValueToken? init_constant_token (long val, int32 position) {
9
9
      return new ConstantValueToken (val, position);
10
10
    }
11
11
    
12
 
    public static ValueToken? init_variable_token (string name, int position) {
 
12
    public static ValueToken? init_variable_token (string name, int32 position) {
13
13
      return new VariableValueToken (name, position);
14
14
    }
15
15
    
16
 
    public static ValueToken? init_value_token (Value p1, int position) {
 
16
    public static ValueToken? init_value_token (Value p1, int32 position) {
17
17
      switch (p1.type ()){
18
18
        case (Type.STRING):
19
19
          return init_variable_token (p1.get_string (), position);