/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/operator/operator_token.vala

  • Committer: Gustav Hartvigsson
  • Date: 2021-05-24 15:49:06 UTC
  • Revision ID: gustav.hartvigsson@gmail.com-20210524154906-z65s7fxnt3zfb8qn
* FastNumber:
  * added ability to get the decimal.
  * added ability to set the decimal.
  * Explicitly define the raw number.
  * Made operatiors public

* OperatorToken:
  * uncommented the operators in init_token ()

* [...]OperatorToken:
  * constructers: protected -> public

* Tests:
  * Added test for FastNumber (need more cases)

Show diffs side-by-side

added added

removed removed

Lines of Context:
12
12
                                             throws ParseError {
13
13
      switch (name) {
14
14
        case "+": 
15
 
          //return new AddOperatiorToken (position);
16
 
        break;
 
15
          return new AddOperatorToken (position);
 
16
          //break;
17
17
        case "-":
18
 
          //return new SubtractOperatiorTokes (position);
19
 
        break;
 
18
          return new SubtractOperatorToken (position);
 
19
          //break;
20
20
        case "*":
21
 
          //return new MultiplyOperatiorToken (position);
22
 
        break;
 
21
          return new MultiplyOperatorToken (position);
 
22
          //break;
23
23
        case "/":
24
 
          //return new DevideOperatiorToken (position);
25
 
        break;
 
24
          return new DivideOperatorToken (position);
 
25
          //break;
26
26
        case "d":
27
27
        case "w":
28
28
        case "t":