private void checkPrintFunction() throws Exception {
		if(iterator < tokenList.size() && tokenList.get(iterator++).getType() != TokenType.L_PAR) {
			// missing opening parenthesis
			throw new Exception("Syntax Error at line " + tokenList.get(iterator-1).getLine() + 
					": Expected ( and got \"" + tokenList.get(iterator-1).getKey() + "\" instead");
		}
		
		checkMessage();
		
		if(iterator < tokenList.size() && tokenList.get(iterator++).getType() != TokenType.R_PAR) {
			// missing closing parenthesis
			throw new Exception("Syntax Error at line " + tokenList.get(iterator-1).getLine() + 
					": Expected ) and got \"" + tokenList.get(iterator-1).getKey() + "\" instead");
		}
		if(iterator < tokenList.size() && tokenList.get(iterator++).getType() != TokenType.SEMICOLLON) {
			// missing semicollon
			throw new Exception("Syntax Error at line " + tokenList.get(iterator-1).getLine() + 
					": Expected ; and got \"" + tokenList.get(iterator-1).getKey() + "\" instead");
		}
	}