/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-09-08 19:18:17 UTC
  • Revision ID: gustav.hartvigsson@gmail.com-20210908191817-1n4gjqga8zupr6s0
* Use enum instead of static values for the priority of operations.

Show diffs side-by-side

added added

removed removed

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