/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/divide_operator_token.vala

  • Committer: Gustav Hartvigsson
  • Date: 2022-06-01 12:14:52 UTC
  • Revision ID: gustav.hartvigsson@gmail.com-20220601121452-ntu94w67q3dhhfeq
More work torwards inperementing the parser.

Show diffs side-by-side

added added

removed removed

Lines of Context:
30
30
      // We check the precidence of the token, and inclose the value if
31
31
      // it has a lower precidence than multiply, if it is, we enclose it in a
32
32
      // praranthesis.
33
 
      if (l_child.priority > 0 && l_child.priority < priority) {
 
33
      if (l_child.priority > Prio.ASSIGNMENT && l_child.priority < priority) {
34
34
        sb.append ("(").append (l_child.result_string).append (")");
35
35
        //l_child.result_string = "(" + l_child.result_string + ")";
36
36
      } else {
40
40
      sb.append ("*");
41
41
      
42
42
      // We do the same with the othre child.
43
 
      if (r_child.priority > 0 && r_child.priority < priority) {
 
43
      if (r_child.priority > Prio.ASSIGNMENT && r_child.priority < priority) {
44
44
        sb.append ("(").append (r_child.result_string).append (")");
45
45
        //r_child.result_string = "(" + r_child.result_string + ")";
46
46
      } else {