private void findEndOfStatement() {
	do{
		try {
			token = lexer.get_token();
		} catch (SyntaxError e) {
			controller.consoleOut(e.toString()+" at line: "+e.getLine()+'\n');
		}
	}while(!token.value.equals(";") && !token.value.equals("}") && !token.value.equals("{") && token.type!=token_type.FINISHED);
	if(token.value.equals("}")||token.value.equals("{"))
		lexer.putback();
}