@@ -0,0 +1,3135 @@
+%0A/*%0A *   Calccedo Library%0A *   hint this code under Apache License%0A */%0A%0A%0Apackage com.precious.calccedo.handlers;%0A%0A%0A%0A%0A/**%0A *%0A * @author Ibrahim Abdsaid Hanna%0A *         ibrahim.seniore@gmail.com%0A */%0Apublic class Eshortuct extends CalculatorHandler%7B%0A    %0A     String leftTemp;%0A     char operandType;%0A     int leftOperandIndex;%0A     int rightOperandIndex;%0A   %0A        public Eshortuct()%7B%0A            %0A        %7D%0A     %0A    public Eshortuct(String leftTemp,char operandType,int leftOperandIndex,int rightOperandIndex)%7B%0A        this.leftTemp=leftTemp;%0A        this.operandType=operandType;%0A        this.leftOperandIndex=leftOperandIndex;%0A        this.rightOperandIndex=rightOperandIndex;%0A    %7D%0A%0A %0A    // process E shortuct to not conflict with - and + operand     %0A    public Eshortuct process(String subformula,int Eindex)%7B%0A        %0A         String leftTemp=%22E%22;%0A         char operandType = 0;%0A         int leftOperandIndex = 0;%0A         int rightOperandIndex = 0;%0A        %0A         boolean ignore=false;%0A         %0A         %0A         %0A           for(int i=Eindex;i%3E=0;i--)%7B%0A                if(!isNumber(subformula.charAt(i)))%7B%0A                   if(isMinus(subformula.charAt(i))&&ignore==false)%7B%0A                       leftOperandIndex=i;%0A                       leftTemp=subformula.charAt(i)+leftTemp;%0A                       break;%0A                   %7D%0A                  else if(isPlus(subformula.charAt(i)))%7B%0A                      leftOperandIndex=i;%0A                      break;%0A                   %7D%0A                   %0A               %7D%0A               else%7B%0A                   leftTemp=subformula.charAt(i)+leftTemp;%0A               %7D%0A           %7D%0A           %0A           %0A           %0A           for(int j=Eindex;j%3Csubformula.length();j++)%7B%0A               %0A                if(!isNumber(subformula.charAt(j)))%7B%0A                   if(isMinus(subformula.charAt(j))&&Eindex+1=='-'&&ignore==false)%7B%0A                       leftTemp=leftTemp+'-';%0A                       ignore=true;%0A                   %7D%0A                  else if(isPlus(subformula.charAt(j)))%7B%0A                      operandType='+';%0A                      rightOperandIndex=j;%0A                      break;%0A                   %7D%0A                  else if(ignore==true&&(isMinus(subformula.charAt(j))%7C%7CisPlus(subformula.charAt(j))))%7B%0A                       operandType=subformula.charAt(j);%0A                       rightOperandIndex=j;%0A                       break;%0A                  %7D%0A                 %0A                 else if(isMinus(subformula.charAt(j))%7C%7CisPlus(subformula.charAt(j)))%7B%0A                       operandType=subformula.charAt(j);%0A                       rightOperandIndex=j;%0A                       break;%0A                  %7D%0A                 %0A               %7D%0A               else%7B%0A                   leftTemp=leftTemp+subformula.charAt(j);%0A               %7D%0A           %7D%0A         %0A        return new Eshortuct(leftTemp, operandType,leftOperandIndex,rightOperandIndex);%0A    %7D%0A    %0A    %0A    %0A    public boolean isMinus(char c)%7B%0A        return c=='-' ? true:false;%0A    %7D%0A    %0A    %0A    public boolean isPlus(char c)%7B%0A        return c=='+' ? true:false;%0A    %7D%0A    %0A%0A    %0A%7D%0A %0A

Create Eshortuct.java