[Kst] kdeextragear-2/kst/kst

Andrew Walker arwalker at sumusltd.com
Thu Apr 1 21:51:38 CEST 2004


CVS commit by arwalker: 

Why not to use regexp's for string replacement


  M +4 -4      exparse.y   1.6


--- kdeextragear-2/kst/kst/exparse.y  #1.5:1.6
@@ -70,13 +70,13 @@ EQUATION	:	EQUATION T_ADD TERM
                 ;
 
-TERM            :       TERM T_MULTIPLY PONENTORNOT
+TERM            :       TERM T_MULTIPLY EXPONENTORNOT
                         { $<n>$ = NewMultiplication($<n>1, $<n>3); }
-                |       TERM T_DIVIDE PONENTORNOT
+                |       TERM T_DIVIDE EXPONENTORNOT
                         { $<n>$ = NewDivision($<n>1, $<n>3); }
-                |       PONENTORNOT
+                |       EXPONENTORNOT
                         { $<n>$ = $<n>1; }
                 ;
 
-PONENTORNOT     :       ATOMIC '^' ATOMIC
+EXPONENTORNOT   :       ATOMIC '^' ATOMIC
                         { $<n>$ = NewPower($<n>1, $<n>3); }
                 |       ATOMIC





More information about the Kst mailing list