/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: 2024-12-22 00:42:11 UTC
  • Revision ID: gustav.hartvigsson@gmail.com-20241222004211-eg5i6yqp677vmc2n
[libvee/fast_number.vala] Removed debug code.

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,
 
13
                                                   int32 position) {
13
14
      return new VariableValueToken (name, position);
14
15
    }
15
16
    
16
 
    public static ValueToken? init_value_token (Value p1, int position) {
 
17
    public static ValueToken? init_value_token (Value p1, int32 position) {
17
18
      switch (p1.type ()){
18
19
        case (Type.STRING):
19
20
          return init_variable_token (p1.get_string (), position);