(String name)
| 2405 | } |
| 2406 | |
| 2407 | public double getVariable(String name) { |
| 2408 | int index; |
| 2409 | for (int i=0; i<=topOfStack; i++) { |
| 2410 | index = stack[i].symTabIndex; |
| 2411 | if (pgm.table[index].str.equals(name)) |
| 2412 | return stack[i].getValue(); |
| 2413 | } |
| 2414 | return Double.NaN; |
| 2415 | } |
| 2416 | |
| 2417 | public double getVariable2(String name) { |
| 2418 | int index; |
no test coverage detected