A semantic search engine for source code https://bitshift.benkurtovic.com/
25개 이상의 토픽을 선택하실 수 없습니다. Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

java_parser_test.py 424 B

123456789101112131415161718
  1. import socket
  2. client_socket = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
  3. client_socket.connect(("localhost", 5002))
  4. with open("resources/Matrix.java", "r") as java_file:
  5. source = java_file.read() + "\nEOS_BITSHIFT"
  6. client_socket.send("%d\n%s" % (len(source), source));
  7. data = ''
  8. while True:
  9. data = client_socket.recv(10000)
  10. if data != '':
  11. client_socket.close()
  12. break;
  13. print data;