[RPL/2] Patch to fix analyse_algebrique() subroutine

BERTRAND Joël joel.bertrand at systella.fr
Lun 8 Nov 15:37:49 CET 2004


	Hello,

	You can find in attachment a patch to solve the mistake I have found
	yesterday. It's a part of 4.00pre8a, but this beta release is not
	available yet. I have to fix some functions in symbolic derivation
	subroutines.

	JKB
-------------- section suivante --------------
740,741c740,745
< 									(((t1 == '+') || (t1 == '-'))
< 									&& (priorite == 5) &&
---
> 									((t1 == '+') && (priorite == 5) &&
> 									(t2 != '\'') && (!(((t2 == '(')
> 									|| (t2 == '\'') || (t2 == 'e')
> 									|| (t2 == 'E')) && (((t3 >= '0')
> 									&& (t3 <= '9')) || (t3 == '.'))))) ||
> 									((t1 == '-') && (priorite == 6) &&
746,748c750,752
< 									|| (((t1 == '*') || (t1 == '/'))
< 									&& (priorite == 6)) || ((t1 == '^')
< 									&& (priorite == 7)))
---
> 									|| ((t1 == '*') && (priorite == 7))
> 									|| ((t1 == '/') && (priorite == 8)) ||
> 									((t1 == '^') && (priorite == 9)))
893c897
< 			} while(priorite < 8);
---
> 			} while(priorite < 10);


Plus d'informations sur la liste de diffusion RPL2