Hello. I will find your post on portal "habr.ru".
I can't commented in topic "http://habrahabr.ru/post/140075/" becouse not invited, anyway i find some bugs.
1) Сode does not match the algorithm (line 169 - need add check)
2) If input expression are not correctly (2++8+*2) on output (stack) not correctly RPN expression.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Anonymous
-
2012-03-27
Thanks for your feedback!
Думаю, дальше можем общаться по-русски :)
Я не совсем понял суть багов... Начну со второго. На приведенное выражение вылетит ParseException, как и должен (т.к. выражение некорректное). В баг? Вполне ожидаемое поведение.
Первый вообще не понял. Какую именно проверку необходимо вставить на 169 строке?
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hello. I will find your post on portal "habr.ru".
I can't commented in topic "http://habrahabr.ru/post/140075/" becouse not invited, anyway i find some bugs.
1) Сode does not match the algorithm (line 169 - need add check)
2) If input expression are not correctly (2++8+*2) on output (stack) not correctly RPN expression.
Thanks for your feedback!
Думаю, дальше можем общаться по-русски :)
Я не совсем понял суть багов... Начну со второго. На приведенное выражение вылетит ParseException, как и должен (т.к. выражение некорректное). В баг? Вполне ожидаемое поведение.
Первый вообще не понял. Какую именно проверку необходимо вставить на 169 строке?