Skip to content

Instantly share code, notes, and snippets.

(load "functionParser.scm")
(load "environment.scm")
;(define call/cc call-with-current-continuation)
(define interpret
(lambda (filename)
(interpret-func-call 'main '() (interpret-global-stmt-list (parser filename) newenv))))
(define interpret-global-stmt-list
private void connectToUrl() {
System.out.println("Connecting to requested server");
String[] requestLine = requestHeaders.get(0).split(" ");
String uri = requestLine[1];
String method = requestLine[0];
String domain = uri.substring(7, uri.length());
int index = domain.indexOf("/");
String hostname = domain.substring(0, index);
String directory = domain.substring(index, domain.length());