LISP,加减乘除,——某为,编程题,java实现

import java.util.Stack;

public class problem {

	public static void main(String[] args) {
		// TODO Auto-generated method stub

		String string = "(div 2 (sub 5 (add 3 2)))";//这里改成标准输入
		
		StringBuffer inputString = new StringBuffer(string);
		
		Stack numberBuffer = new Stack();
		Stack operationBuffer = new Stack();
		int mark = 0;
		int ParameterOne = 0;
		int ParameterTwe = 0;
		
		for(int index = 0;index

你可能感兴趣的:(LISP,加减乘除,——某为,编程题,java实现)