Puoi utilizzare due tecniche: una iterativa(Operator Precedence Parsing), l'altra ricorsiva(Recursive Descent Parser).
Qui un esempio relativo al primo metodo:
https://github.com/Vincenzo1968/OperatorPrecedenceParsing/tree/master/Java
Secondo metodo:
https://github.com/Vincenzo1968/Pars...ee/master/Java
![]()