private String Term() { //getting values
		boolean error = false;
		if(current.getId().equals("VARNAME")) {
			String name = current.getLexeme();
			nextToken();
			if(current.getId().equals("LSBRACKET")) {
				nextToken();
				if(current.getId().equals("VALNUM")) {
					String index = current.getLexeme();
					nextToken();
					if(current.getId().equals("RSBRACKET")) {
						nextToken();
						return Values.getArrValue(name,index);
					}
					else {
						error = true;
					}
				}
				else {
					error = true;
				}
			}
			else {
				return Values.getValue(name);
			}
			if(error) {
				Error("Invalid array expression.");
			}
		}
		else if(current.getId().equals("VALSTR")) {
			return current.getLexeme();
		}
		else if(current.getId().equals("VALNUM")) {
			return current.getLexeme();
		}
		else if(current.getId().equals("TRUE") || current.getId().equals("FALSE")) {
			return current.getLexeme();
		}
		else {
			Error("Expecting variable name.");
		}
		return "";
	}